Merge pull request #189587 from NickCao/nvidia-ifd
nixos/nvidia: replace IFD based assertion on power management support…
This commit is contained in:
commit
08799a93bf
1 changed files with 2 additions and 5 deletions
|
@ -233,11 +233,8 @@ in
|
|||
}
|
||||
|
||||
{
|
||||
assertion = cfg.powerManagement.enable -> (
|
||||
builtins.pathExists (cfg.package.out + "/bin/nvidia-sleep.sh") &&
|
||||
builtins.pathExists (cfg.package.out + "/lib/systemd/system-sleep/nvidia")
|
||||
);
|
||||
message = "Required files for driver based power management don't exist.";
|
||||
assertion = cfg.powerManagement.enable -> versionAtLeast nvidia_x11.version "430.09";
|
||||
message = "Required files for driver based power management only exist on versions >= 430.09.";
|
||||
}
|
||||
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue