From e6173588a642c93c083c90057989195068a06226 Mon Sep 17 00:00:00 2001 From: Jonni Liljamo Date: Mon, 14 Oct 2024 11:27:40 +0300 Subject: [PATCH] feat: imv role --- hosts/alice/default.nix | 2 ++ roles/default.nix | 1 + roles/imv.nix | 15 +++++++++++++++ 3 files changed, 18 insertions(+) create mode 100644 roles/imv.nix diff --git a/hosts/alice/default.nix b/hosts/alice/default.nix index 5e36e6e..7451d4c 100644 --- a/hosts/alice/default.nix +++ b/hosts/alice/default.nix @@ -63,6 +63,8 @@ roles.zellij.enable = true; roles.kitty.enable = true; + roles.imv.enable = true; + roles.podman.enable = true; roles.graphics = { diff --git a/roles/default.nix b/roles/default.nix index 173d783..01c0501 100644 --- a/roles/default.nix +++ b/roles/default.nix @@ -11,6 +11,7 @@ ./docker.nix ./git.nix ./hyprland.nix + ./imv.nix ./kitty.nix ./nix.nix ./obs.nix diff --git a/roles/imv.nix b/roles/imv.nix new file mode 100644 index 0000000..42ad6c3 --- /dev/null +++ b/roles/imv.nix @@ -0,0 +1,15 @@ +{ + config, + lib, + ... +}: let + cfg = config.roles.imv; +in { + options.roles.imv = { + enable = lib.mkEnableOption "imv, a command line image viewer"; + }; + + config = lib.mkIf cfg.enable { + hm.programs.imv.enable = true; + }; +} -- 2.44.1