From 0756463089eac001b06d402e81fbcea055489709 Mon Sep 17 00:00:00 2001 From: Dmitriy Kholkin Date: Fri, 4 Jul 2025 18:15:55 +0300 Subject: [PATCH] feat: add zathura module --- modules/home/applications/zathura.nix | 25 +++++++++++++++++++++++++ modules/home/roles/default.nix | 1 + 2 files changed, 26 insertions(+) create mode 100644 modules/home/applications/zathura.nix 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;