summaryrefslogtreecommitdiff
path: root/parts/users/seth/desktop/gnome/default.nix
blob: 82a4708a405123bcfa30a83e467c91753c14f59c (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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{
  config,
  lib,
  pkgs,
  ...
}: let
  cfg = config.getchoo.desktop.gnome;
  inherit (lib) mkIf;
in {
  config = mkIf cfg.enable {
    home.packages = with pkgs;
      [
        adw-gtk3
        papirus-icon-theme
        tuba
      ]
      ++ (with pkgs.gnomeExtensions; [
        blur-my-shell
        burn-my-windows
        caffeine
        gradience
      ]);

    dconf = {
      enable = true;
      settings = {
        "org/gnome/shell" = {
          disable-user-extensions = false;

          enabled-extensions = [
            "[email protected]"
          ];

          favorite-apps = [
            "firefox.desktop"
            "org.gnome.Nautilus.desktop"
            "discord.desktop"
          ];
        };

        "org/gnome/desktop/interface" = {
          color-scheme = "prefer-dark";
          document-font-name = ''Noto Sans 11'';
          font-antialiasing = ''rgba'';
          font-name = ''Noto Sans 11'';
          icon-theme = ''Papirus-Dark'';
          monospace-font-name = ''FiraCode Nerd Font 10'';
        };

        "org/gnome/desktop/peripherals/mouse" = {
          accel-profile = ''flat'';
        };

        "org/gnome/desktop/wm/preferences" = {
          titlebar-font = ''Noto Sans Bold 11'';
        };

        "org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0" = {
          name = "blackbox";
          command = "blackbox";
          binding = "<Control><Alt>t";
        };

        "com/raggesilver/BlackBox" = {
          font = ''FiraCode Nerd Font 12'';
          theme-dark = ''Catppuccin-Mocha'';
          remember-window-size = true;
        };
      };
    };

    gtk = {
      enable = true;
      theme = {
        name = "adw-gtk3";
        package = pkgs.adw-gtk3;
      };
    };

    xdg.dataFile."blackbox/schemes/Catppuccin-Mocha.json".source =
      pkgs.fetchFromGitHub {
        owner = "catppuccin";
        repo = "tilix";
        rev = "3fd05e03419321f2f2a6aad6da733b28be1765ef";
        sha256 = "sha256-SI7QxQ+WBHzeuXbTye+s8pi4tDVZOV4Aa33mRYO276k=";
      }
      + "/src/Catppuccin-Mocha.json";
  };
}