diff --git a/home-manager/foot.nix b/home-manager/foot.nix deleted file mode 100644 index 51e109f..0000000 --- a/home-manager/foot.nix +++ /dev/null @@ -1,46 +0,0 @@ -_: { - programs.foot = { - enable = true; - settings = { - main = { - dpi-aware = "yes"; - font = "Fira Code Nerd Font Mono:size=10"; - }; - mouse = { - hide-when-typing = "yes"; - }; - colors = { - - background = "181818"; - foreground = "d8d8d8"; - regular0 = "181818"; - regular1 = "ab4642"; - regular2 = "a1b56c"; - regular3 = "f7ca88"; - regular4 = "7cafc2"; - regular5 = "ba8baf"; - regular6 = "86c1b9"; - regular7 = "d8d8d8"; - bright0 = "585858"; - bright1 = "dc9656"; - bright2 = "282828"; - bright3 = "383838"; - bright4 = "b8b8b8"; - bright5 = "e8e8e8"; - bright6 = "a16946"; - bright7 = "f8f8f8"; - "16" = "dc9656"; - "17" = "a16946"; - "18" = "282828"; - "19" = "383838"; - "20" = "b8b8b8"; - "21" = "e8e8e8"; - selection-background = "d8d8d8"; - selection-foreground = "181818"; - urls = "b8b8b8"; - jump-labels = "181818 f7ca88"; - scrollback-indicator= "181818 b8b8b8"; - }; - }; - }; -} diff --git a/modules/home-manager/application/foot/default.nix b/modules/home-manager/application/foot/default.nix new file mode 100644 index 0000000..b419426 --- /dev/null +++ b/modules/home-manager/application/foot/default.nix @@ -0,0 +1,58 @@ +{ lib, config, ... }: +with lib; +let + cfg = config.modules.application.zathura; +in +{ + options.modules.application.imv = { + enable = mkEnableOption "enable IMV image viewer"; + }; + config = mkIf cfg.enable { + programs.foot = { + enable = true; + settings = { + main = { + dpi-aware = "yes"; + font = "Fira Code Nerd Font Mono:size=10"; + }; + mouse = { + hide-when-typing = "yes"; + }; + colors = { + background = "181818"; + foreground = "d8d8d8"; + regular0 = "181818"; + regular1 = "ab4642"; + regular2 = "a1b56c"; + regular3 = "f7ca88"; + regular4 = "7cafc2"; + regular5 = "ba8baf"; + regular6 = "86c1b9"; + regular7 = "d8d8d8"; + bright0 = "585858"; + bright1 = "dc9656"; + bright2 = "282828"; + bright3 = "383838"; + bright4 = "b8b8b8"; + bright5 = "e8e8e8"; + bright6 = "a16946"; + bright7 = "f8f8f8"; + "16" = "dc9656"; + "17" = "a16946"; + "18" = "282828"; + "19" = "383838"; + "20" = "b8b8b8"; + "21" = "e8e8e8"; + selection-background = "d8d8d8"; + selection-foreground = "181818"; + urls = "b8b8b8"; + jump-labels = "181818 f7ca88"; + scrollback-indicator= "181818 b8b8b8"; + }; + csd = { + preferred = "none"; + }; + }; + }; + }; +} diff --git a/modules/home-manager/default.nix b/modules/home-manager/default.nix index 376a42b..5791d78 100644 --- a/modules/home-manager/default.nix +++ b/modules/home-manager/default.nix @@ -1,6 +1,7 @@ { ... }: { imports = [ + ./application/foot ./application/imv ./application/zathura ./cli/git diff --git a/nixos/default.nix b/nixos/default.nix index 3bc4b56..176202c 100644 --- a/nixos/default.nix +++ b/nixos/default.nix @@ -64,12 +64,7 @@ ../hosts/${hostname}/home-config.nix ../modules/home-manager/default.nix ../home-manager/cli - ] ++ (if hostConfig.desktop then - [ - ../home-manager/foot.nix - ] - else [] - ) ++ lib.optional ( + ] ++ lib.optional ( builtins.pathExists ../home-manager/hosts/${hostname}.nix ) ../home-manager/hosts/${hostname}.nix; };