diff --git a/nix/configuration/hosts/neelix/default.nix b/nix/configuration/hosts/neelix/default.nix index 870e21e..c5a0fe5 100644 --- a/nix/configuration/hosts/neelix/default.nix +++ b/nix/configuration/hosts/neelix/default.nix @@ -23,10 +23,9 @@ # Mount tmpfs at /tmp boot.tmp.useTmpfs = true; - me.graphical = true; - me.graphicsCardType = "intel"; - - me.kodi.enable = true; me.bluetooth.enable = true; me.emacs_flavor = "plainmacs"; + me.graphical = true; + me.graphicsCardType = "intel"; + me.kodi.enable = true; } diff --git a/nix/configuration/hosts/odo/default.nix b/nix/configuration/hosts/odo/default.nix index defc7df..3624d85 100644 --- a/nix/configuration/hosts/odo/default.nix +++ b/nix/configuration/hosts/odo/default.nix @@ -29,10 +29,10 @@ fw-ectool ]; - me.graphical = true; - me.graphicsCardType = "amd"; - - me.sway.enable = true; + me.alacritty.enable = true; me.ansible.enable = true; me.emacs_flavor = "full"; + me.graphical = true; + me.graphicsCardType = "amd"; + me.sway.enable = true; } diff --git a/nix/configuration/roles/alacritty/default.nix b/nix/configuration/roles/alacritty/default.nix index 9fec1ca..e691ad8 100644 --- a/nix/configuration/roles/alacritty/default.nix +++ b/nix/configuration/roles/alacritty/default.nix @@ -7,18 +7,32 @@ { imports = [ ]; - - environment.systemPackages = with pkgs; [ - alacritty - xdg-utils # for xdg-open - ]; - - home-manager.users.talexander = - { pkgs, ... }: - { - home.file.".config/alacritty/alacritty.toml" = { - source = ./files/alacritty.toml; - }; + options.me = { + alacritty.enable = lib.mkOption { + type = lib.types.bool; + default = false; + example = true; + description = "Whether we want to install alacritty."; }; + }; + + config = lib.mkIf config.me.alacritty.enable ( + lib.mkMerge [ + (lib.mkIf config.me.graphical { + environment.systemPackages = with pkgs; [ + alacritty + xdg-utils # for xdg-open + ]; + + home-manager.users.talexander = + { pkgs, ... }: + { + home.file.".config/alacritty/alacritty.toml" = { + source = ./files/alacritty.toml; + }; + }; + }) + ] + ); }