diff --git a/nix/configuration/hosts/odo/default.nix b/nix/configuration/hosts/odo/default.nix index 3624d85..9fef9e4 100644 --- a/nix/configuration/hosts/odo/default.nix +++ b/nix/configuration/hosts/odo/default.nix @@ -31,6 +31,7 @@ me.alacritty.enable = true; me.ansible.enable = true; + me.ares.enable = true; me.emacs_flavor = "full"; me.graphical = true; me.graphicsCardType = "amd"; diff --git a/nix/configuration/roles/ares/default.nix b/nix/configuration/roles/ares/default.nix index 0e6d9cf..1375f47 100644 --- a/nix/configuration/roles/ares/default.nix +++ b/nix/configuration/roles/ares/default.nix @@ -8,7 +8,23 @@ { imports = [ ]; - environment.systemPackages = with pkgs; [ - ares - ]; + options.me = { + ares.enable = lib.mkOption { + type = lib.types.bool; + default = false; + example = true; + description = "Whether we want to install ares."; + }; + }; + + config = lib.mkIf config.me.ares.enable ( + lib.mkMerge [ + { } + (lib.mkIf config.me.graphical { + environment.systemPackages = with pkgs; [ + ares + ]; + }) + ] + ); }