feat(home): Zathura
This commit is contained in:
parent
23828a12bb
commit
545de6261f
3 changed files with 25 additions and 8 deletions
|
@ -47,6 +47,7 @@ in
|
|||
tmux = enabled;
|
||||
wezterm = enabled;
|
||||
wget = enabled;
|
||||
zathura = enabled;
|
||||
};
|
||||
xorg = {
|
||||
xsession = enabled;
|
||||
|
|
24
modules/home/programs/zathura/default.nix
Normal file
24
modules/home/programs/zathura/default.nix
Normal file
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
programs.zathura = {
|
||||
enable = true;
|
||||
|
||||
rose-pine.enable = true;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue