diff options
| author | Caroline Larimore <caroline@larimo.re> | 2025-02-07 22:57:54 -0800 |
|---|---|---|
| committer | Caroline Larimore <caroline@larimo.re> | 2025-04-14 18:58:49 -0700 |
| commit | f94a9071e7ccad349af26add593e855cd9f88f32 (patch) | |
| tree | c72506f139d9747c487d180ada054eafc86c1be2 /snowfall | |
| parent | e11a0658b3c47459767ba49ccfe319a2b8c73456 (diff) | |
migration: gtk theme
Diffstat (limited to 'snowfall')
| -rw-r--r-- | snowfall/modules/home/desktop/components/gtk/default.nix | 26 | ||||
| -rw-r--r-- | snowfall/modules/home/suites/desktop/default.nix | 4 | ||||
| -rw-r--r-- | snowfall/modules/nixos/suites/desktop/default.nix | 2 |
3 files changed, 32 insertions, 0 deletions
diff --git a/snowfall/modules/home/desktop/components/gtk/default.nix b/snowfall/modules/home/desktop/components/gtk/default.nix new file mode 100644 index 0000000..a20cc1f --- /dev/null +++ b/snowfall/modules/home/desktop/components/gtk/default.nix @@ -0,0 +1,26 @@ +{ options, config, lib, pkgs, namespace, ... }: + +with lib; with lib.${namespace}; let + cfg = config.${namespace}.desktop.components.gtk; +in { + options.${namespace}.desktop.components.gtk = with types; { + enable = mkEnableOption "gtk"; + }; + + config = mkIf cfg.enable { + gtk = { + enable = true; + + #TODO: dynamic theming + theme = { + package = pkgs.gruvbox-gtk-theme; + name = "Gruvbox-Dark"; + }; + + font = { + name = "monospace"; + size = 8; + }; + }; + }; +} diff --git a/snowfall/modules/home/suites/desktop/default.nix b/snowfall/modules/home/suites/desktop/default.nix index 2e73ad0..f80cadb 100644 --- a/snowfall/modules/home/suites/desktop/default.nix +++ b/snowfall/modules/home/suites/desktop/default.nix @@ -19,6 +19,10 @@ in { kitty.enable = true; flameshot.enable = true; }; + + desktop.components = { + gtk.enable = true; + }; }; }; } diff --git a/snowfall/modules/nixos/suites/desktop/default.nix b/snowfall/modules/nixos/suites/desktop/default.nix index 90b60cc..1d6e0c2 100644 --- a/snowfall/modules/nixos/suites/desktop/default.nix +++ b/snowfall/modules/nixos/suites/desktop/default.nix @@ -21,5 +21,7 @@ in { system.fonts.enable = true; }; + + programs.dconf.enable = true; }; } |