diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-10-18 19:12:04 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-10-18 19:30:17 +0200 |
commit | 6f58045f9711eaf435bce9f8ef66c7423890867e (patch) | |
tree | ff456d30ad72154c0a5069e7eb4f253835caa7ed /modules/by-name/im | |
parent | docs(modules/home-manager): Add a TODO regarding a better error message (diff) | |
download | nixos-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 '')
-rw-r--r-- | modules/by-name/im/imv/module.nix | 21 |
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"; + }; + }; +} |