nixos-mods/hwCommon: assert both hwCommon & vmCommon from being enabled

instead of blocking it hard
secrix-issue25
Felix Stupp 2 months ago
parent 72bb1b057c
commit 713019c2d9
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -56,6 +56,14 @@ in
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
assertions = [
{
assertion = cfg.enable -> !config.x-banananetwork.vmCommon.enable;
message = "hwCommon & vmCommon profiles cannot both be enabled at the same time";
}
];
boot = { boot = {
# TODO adapt better # TODO adapt better
@ -132,7 +140,6 @@ in
x-banananetwork = { x-banananetwork = {
allCommon.enable = true; allCommon.enable = true;
vmCommon.enable = false;
useable.enable = lib.mkDefault true; # add docs & tools for emergencies useable.enable = lib.mkDefault true; # add docs & tools for emergencies
}; };

Loading…
Cancel
Save