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 [ config = lib.mkMerge [
( {
lib.mkIf assertions = [{
cfg.required assertion = cfg.required -> cfg.amd.enable || cfg.intel.enable;
{ message = "'hardware.graphics.required' not fullfilled by any of 'hardware.graphics.*.enable'";
assertions = [ (cfg.amd.enable || cfg.intel.enable) ]; }];
} }
)
( (
# TODO replace with drivers # TODO replace with drivers

Loading…
Cancel
Save