From 545de6261f00a010c7ed265252b9fec38a35b4f6 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Sat, 16 Nov 2024 21:15:01 -0800 Subject: [PATCH] feat(home): Zathura --- homes/x86_64-linux/marley@nyx/default.nix | 1 + modules/home/programs/zathura/default.nix | 24 +++++++++++++++++++++++ old/home/programs/zathura.nix | 8 -------- 3 files changed, 25 insertions(+), 8 deletions(-) create mode 100644 modules/home/programs/zathura/default.nix delete mode 100644 old/home/programs/zathura.nix diff --git a/homes/x86_64-linux/marley@nyx/default.nix b/homes/x86_64-linux/marley@nyx/default.nix index 106507c..efe4292 100644 --- a/homes/x86_64-linux/marley@nyx/default.nix +++ b/homes/x86_64-linux/marley@nyx/default.nix @@ -47,6 +47,7 @@ in tmux = enabled; wezterm = enabled; wget = enabled; + zathura = enabled; }; xorg = { xsession = enabled; diff --git a/modules/home/programs/zathura/default.nix b/modules/home/programs/zathura/default.nix new file mode 100644 index 0000000..bca3724 --- /dev/null +++ b/modules/home/programs/zathura/default.nix @@ -0,0 +1,24 @@ +{ + lib, + config, + namespace, + ... +}: +let + inherit (lib) mkIf enabled; + inherit (lib.${namespace}) mkEnableModule; + + cfg = config.${namespace}.programs.zathura; + inherit (config.${namespace}) theme; +in +{ + options = mkEnableModule "programs.zathura"; + + config = mkIf cfg.enable { + programs.zathura = { + enable = true; + + "${theme.colors.base}" = enabled; + }; + }; +} diff --git a/old/home/programs/zathura.nix b/old/home/programs/zathura.nix deleted file mode 100644 index eac2dfe..0000000 --- a/old/home/programs/zathura.nix +++ /dev/null @@ -1,8 +0,0 @@ -{ ... }: -{ - programs.zathura = { - enable = true; - - rose-pine.enable = true; - }; -}