diff options
Diffstat (limited to 'modules/home/theme.nix')
-rw-r--r-- | modules/home/theme.nix | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/modules/home/theme.nix b/modules/home/theme.nix new file mode 100644 index 0000000..c49b8f5 --- /dev/null +++ b/modules/home/theme.nix @@ -0,0 +1,46 @@ +{ config, lib, pkgs, ... }: { + options = { + theme.mint = { + enable = lib.mkEnableOption "enables mint theme"; + theme.color = lib.mkOption { + type = lib.types.str; + default = "Dark-Aqua"; + description = "mint-y theme color eg. 'Dark-Aqua' or 'Red'"; + }; + icons.color = lib.mkOption { + type = lib.types.str; + default = "Aqua"; + description = "mint-y icons color eg. 'Aqua' or 'Red'"; + }; + }; + }; + + config = { + gtk = { + enable = true; + theme = lib.mkIf config.theme.mint.enable { + package = pkgs.cinnamon.mint-themes; + name = "Mint-Y-${config.theme.mint.theme.color}"; + }; + iconTheme = lib.mkIf config.theme.mint.enable { + package = pkgs.cinnamon.mint-y-icons; + name = "Mint-Y-${config.theme.mint.icons.color}"; + }; + cursorTheme = { + name = "Adwaita"; + }; + gtk3.bookmarks = [ + "file:///home/timmy/dls Downloads" + "file:///home/timmy/docs Documents" + "file:///home/timmy/docs/src/sites sites" + "file:///home/timmy/docs/src/scripts scripts" + "file:///home/timmy/docs/src/programs programs" + ]; + gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc"; + }; + qt = { + enable = true; + platformTheme.name = "gtk3"; + }; + }; +} |