Don't install alacritty on neelix or non-graphical installs.
This commit is contained in:
parent
62fc955b68
commit
df2efb728d
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -7,7 +7,18 @@
|
||||
|
||||
{
|
||||
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; [
|
||||
alacritty
|
||||
xdg-utils # for xdg-open
|
||||
@ -20,5 +31,8 @@
|
||||
source = ./files/alacritty.toml;
|
||||
};
|
||||
};
|
||||
})
|
||||
]
|
||||
);
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user