26 lines
443 B
Nix
Raw Normal View History

2025-07-04 18:15:55 +03:00
{
config,
lib,
...
}:
let
inherit (lib) getExe mkEnableOption mkIf;
cfg = config.ataraxia.programs.zathura;
in
{
options.ataraxia.programs.zathura = {
enable = mkEnableOption "Enable zathura program";
};
config = mkIf cfg.enable {
programs.zathura = {
enable = true;
};
defaultApplications.document-viewer = {
cmd = getExe config.programs.zathura.package;
desktop = "zathura";
};
};
}