about summary refs log tree commit diff
path: root/home/profiles/research/default.nix
blob: 2d5347b9ad19a6fd0b9193727a6566f909235f4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{ config, lib, pkgs, self, ... }:
let
  cfg = config.profiles.research;
in
{
  imports = [ ../../../modules/nixpkgs.nix ];

  options.profiles.research = {
    enable = lib.mkEnableOption
      "A profile that enables the system to be used for researching various topics.";
  };

  config = lib.mkIf cfg.enable {
    programs.zathura = {
      enable = true;
      options = {
        adjust-open = "width";
        recolor = true;

        default-bg = "#dbd3c4";
        default-fg = "#151515";

        statusbar-bg = "#dbd3c4";
        statusbar-fg = "#151515";

        inputbar-bg = "#dbd3c4";
        inputbar-fg = "#151515";

        index-bg = "#dbd3c4";
        index-fg = "#151515";
        index-active-bg = "#dbd3c4";
        index-active-fg = "#4f5058";

        highlight-color = "#d4ae80";
        highlight-active-color = "#8197bf";

        notification-bg = "#dbd3c4";
        notification-fg = "#151515";
        notification-warning-bg = "#4f5058";
        notification-warning-fg = "#dcb66a";
        notification-error-bg = "#4f5058";
        notification-error-fg = "#cf6a4c";

        render-loading = true;
        render-loading-fg = "#dbd3c4";
        render-loading-bg = "#151515";

        recolor-lightcolor = "#dbd3c4";
        recolor-darkcolor = "#151515";
      };
    };

    home.packages = [
      pkgs.kicad
      pkgs.ltex-ls
      pkgs.libreoffice
      pkgs.obsidian
      pkgs.pandoc
      pkgs.texlive.combined.scheme-small
      pkgs.typst-preview
      pkgs.websocat

      pkgs.nanum
    ];

    # Let HM manage installed fonts
    fonts.fontconfig.enable = true;

    nixpkgs.allowedUnfree = [ "obsidian" ];
    # TODO: https://github.com/NixOS/nixpkgs/issues/273611
    nixpkgs.config.permittedInsecurePackages = [ "electron-25.9.0" ];
  };
}