about summary refs log tree commit diff stats
path: root/modules/by-name/im/imv/module.nix
blob: 0a324e019f1c3852dc748be56d5e56231f5671a5 (plain) (blame)
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";
    };
  };
}