Don't install alacritty on neelix or non-graphical installs.

This commit is contained in:
Tom Alexander 2025-01-23 18:47:03 -05:00
parent 62fc955b68
commit df2efb728d
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
3 changed files with 33 additions and 20 deletions

View File

@ -23,10 +23,9 @@
# Mount tmpfs at /tmp # Mount tmpfs at /tmp
boot.tmp.useTmpfs = true; boot.tmp.useTmpfs = true;
me.graphical = true;
me.graphicsCardType = "intel";
me.kodi.enable = true;
me.bluetooth.enable = true; me.bluetooth.enable = true;
me.emacs_flavor = "plainmacs"; me.emacs_flavor = "plainmacs";
me.graphical = true;
me.graphicsCardType = "intel";
me.kodi.enable = true;
} }

View File

@ -29,10 +29,10 @@
fw-ectool fw-ectool
]; ];
me.graphical = true; me.alacritty.enable = true;
me.graphicsCardType = "amd";
me.sway.enable = true;
me.ansible.enable = true; me.ansible.enable = true;
me.emacs_flavor = "full"; me.emacs_flavor = "full";
me.graphical = true;
me.graphicsCardType = "amd";
me.sway.enable = true;
} }

View File

@ -7,7 +7,18 @@
{ {
imports = [ ]; imports = [ ];
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; [ environment.systemPackages = with pkgs; [
alacritty alacritty
xdg-utils # for xdg-open xdg-utils # for xdg-open
@ -20,5 +31,8 @@
source = ./files/alacritty.toml; source = ./files/alacritty.toml;
}; };
}; };
})
]
);
} }