ctucx.git: nixfiles

ctucx' nixfiles

commit 66b7acc4b1e5d6a425665d6adc5fec645fa7c038
parent d9b2647ef23cd76cf8b670b559c3cb91d5407576
Author: Leah (ctucx) <git@ctu.cx>
Date: Mon, 17 Jun 2024 18:41:26 +0200

configurations/linux/programs: add `zathura`
3 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/configurations/linux/programs/default.nix b/configurations/linux/programs/default.nix
@@ -16,6 +16,7 @@
     ./ausweisapp.nix
 
     ./thunar.nix
+    ./zathura.nix
     ./mpv.nix
     ./imv.nix
   ];
diff --git a/configurations/linux/programs/zathura.nix b/configurations/linux/programs/zathura.nix
@@ -0,0 +1,19 @@
+{ config, pkgs, lib, ... }:
+
+let
+  cfg = config.ctucxConfig.programs.zathura;
+
+in {
+
+  options = {
+    ctucxConfig.programs = {
+      zathura.enable = lib.mkEnableOption "zathura pdf reader";
+    };
+  };
+
+  config = lib.mkIf cfg.enable {
+    home-manager.users.leah.home.packages = [
+      pkgs.zathura
+    ];
+  };
+}
diff --git a/configurations/linux/sway.nix b/configurations/linux/sway.nix
@@ -67,6 +67,7 @@
       ausweisapp.enable    = true;
 
       thunar.enable        = true;
+      zathura.enable       = true;
       imv.enable           = true;
       mpv.enable           = true;