aboutsummaryrefslogtreecommitdiff
path: root/modules/user/desktop/default.nix
blob: a480d86c27410dc203d2863b4a0b43da5ea65246 (plain) (blame)
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
{
  config,
  lib,
  pkgs,
  options,
  ...
}:
{
  imports = [
    ./swayfx.nix
  ];

  options.desktop = {
    windowManager = lib.mkOption {
      description = "Which window manager to use";
      default = null;
      type = with lib.types; nullOr (enum [ ]);
    };
  };

  config = {
    home = {
      file."Pictures/blossoms.jpg" = {
        enable = (config.desktop.windowManager != null);
        source = ./blossoms.jpg;
      };

      packages = with pkgs; [
        fira-code # monospace font
      ];
    };

    programs = {
      foot = {
        enable = lib.mkDefault (config.desktop.windowManager != null);
        settings = {
          bell = {
            notify = true;
            urgent = true;
          };

          colors = {
            alpha = 0.8;
            background = "191724";
            foreground = "e0def4";
            regular0 = "26233a";
            regular1 = "eb6f92";
            regular2 = "9ccfd8";
            regular3 = "f6c177";
            regular4 = "31748f";
            regular5 = "c4a7e7";
            regular6 = "ebbcba";
            regular7 = "e0def4";
            bright0 = "47435d";
            bright1 = "ff98ba";
            bright2 = "c5f9ff";
            bright3 = "ffeb9e";
            bright4 = "5b9ab7";
            bright5 = "eed0ff";
            bright6 = "ffe5e3";
            bright7 = "fefcff";
            flash = "f6c177";
            cursor = "191724 e0def4";
          };

          cursor.blink = true;
          main = {
            font = "Fira Code:size=8";
            dpi-aware = true;
          };

          mouse.hide-when-typing = true;
        };
      };

      librewolf = {
        enable = lib.mkDefault (config.desktop.windowManager != null);
        profiles = {
          default = { };
          noRFP = {
            id = 1;
            settings = {
              "privacy.resistFingerprinting" = false;
              "webgl.disabled" = false;
            };
          };
        };

        settings = {
          "browser.uidensity" = 1;
          "sidebar.animation.enabled" = false;
          "sidebar.new-sidebar.has-used" = true;
          "sidebar.verticalTabs" = true;
          "sidebar.visibility" = "hide-sidebar";
        };
      };
    };
  };

}