Merge pull request #189587 from NickCao/nvidia-ifd

nixos/nvidia: replace IFD based assertion on power management support…
This commit is contained in:
Thiago Kenji Okada 2022-09-03 12:54:54 +01:00 committed by GitHub
commit 08799a93bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.";
}
{