nixos-mods: fix assertion for hardware.graphics.required

secrix-issue25
Felix Stupp 1 year ago
parent 49a34e56b6
commit 038054d6af
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -26,13 +26,12 @@ in
config = lib.mkMerge [
(
lib.mkIf
cfg.required
{
assertions = [ (cfg.amd.enable || cfg.intel.enable) ];
}
)
{
assertions = [{
assertion = cfg.required -> cfg.amd.enable || cfg.intel.enable;
message = "'hardware.graphics.required' not fullfilled by any of 'hardware.graphics.*.enable'";
}];
}
(
# TODO replace with drivers

Loading…
Cancel
Save