From 6f58045f9711eaf435bce9f8ef66c7423890867e Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 18 Oct 2024 19:12:04 +0200 Subject: 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.) --- modules/by-name/im/imv/module.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 modules/by-name/im/imv/module.nix (limited to 'modules/by-name/im') 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"; + }; + }; +} -- cgit 1.4.1