about summary refs log tree commit diff stats
path: root/modules/by-name/im/imv
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-10-18 19:12:04 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-10-18 19:30:17 +0200
commit6f58045f9711eaf435bce9f8ef66c7423890867e (patch)
treeff456d30ad72154c0a5069e7eb4f253835caa7ed /modules/by-name/im/imv
parentdocs(modules/home-manager): Add a TODO regarding a better error message (diff)
downloadnixos-config-6f58045f9711eaf435bce9f8ef66c7423890867e.tar.gz
nixos-config-6f58045f9711eaf435bce9f8ef66c7423890867e.zip
fix(modules/legacy/conf/zsh): Move ENV-vars to their own modules
This also creates the `imv` and `zathura` module, but the added
configuration should be trivial (especially in the `imv` case.)
Diffstat (limited to 'modules/by-name/im/imv')
-rw-r--r--modules/by-name/im/imv/module.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/modules/by-name/im/imv/module.nix b/modules/by-name/im/imv/module.nix
new file mode 100644
index 00000000..0a324e01
--- /dev/null
+++ b/modules/by-name/im/imv/module.nix
@@ -0,0 +1,21 @@
+{
+  config,
+  lib,
+  ...
+}: let
+  cfg = config.soispha.programs.imv;
+in {
+  options.soispha.programs.imv = {
+    enable = lib.mkEnableOption "imv";
+  };
+
+  config.home-manager.users.soispha = lib.mkIf cfg.enable {
+    programs.imv = {
+      enable = true;
+    };
+
+    home.sessionVariables = {
+      IVIEWER = "imv";
+    };
+  };
+}