From 0598c796b7c740368b66b693c3035cf6a48acb5d Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Thu, 23 Jan 2025 18:53:36 -0500 Subject: [PATCH] Do not install ares on neelix. --- nix/configuration/hosts/odo/default.nix | 1 + nix/configuration/roles/ares/default.nix | 22 +++++++++++++++++++--- 2 files changed, 20 insertions(+), 3 deletions(-) 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 + ]; + }) + ] + ); }