diff --git a/modules/home/applications/zathura.nix b/modules/home/applications/zathura.nix new file mode 100644 index 0000000..9d6e274 --- /dev/null +++ b/modules/home/applications/zathura.nix @@ -0,0 +1,25 @@ +{ + 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"; + }; + }; +} diff --git a/modules/home/roles/default.nix b/modules/home/roles/default.nix index 41b79fa..02a16d8 100644 --- a/modules/home/roles/default.nix +++ b/modules/home/roles/default.nix @@ -89,6 +89,7 @@ in ataraxia.programs.thunderbird.enable = mkDefault true; ataraxia.programs.vscode.enable = mkDefault true; ataraxia.programs.walker.enable = mkDefault true; + ataraxia.programs.zathura.enable = mkDefault true; ataraxia.wayland.enable = mkDefault true; ataraxia.wayland.hyprland.enable = mkDefault true; ataraxia.wayland.mako.enable = mkDefault true;