1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 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"; }; }; }