{ config, lib, pkgs, ... }: { options = { theme.mint = { enable = lib.mkEnableOption "enables mint theme"; # TODO add theme.dark option instead of specifying Dark-Color 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}"; }; font = { package = pkgs.inter; name = "inter"; }; 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"; }; }; }