diff options
author | Nick Cao <nickcao@nichi.co> | 2022-05-12 14:09:32 +0800 |
---|---|---|
committer | Nick Cao <nickcao@nichi.co> | 2022-06-03 10:50:33 +0800 |
commit | 94f5bd2051f59e9e9cdb3f0db1ad88680370117a (patch) | |
tree | f2373ded064dbdf040ce553f6af8eba3a4d8d824 /nixos/modules/hardware/video/nvidia.nix | |
parent | f1142c5a20ef36b8c26be76c52bce4c0c092a757 (diff) |
nvidia_x11: init opensource kernel driver
Diffstat (limited to 'nixos/modules/hardware/video/nvidia.nix')
-rw-r--r-- | nixos/modules/hardware/video/nvidia.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nixos/modules/hardware/video/nvidia.nix b/nixos/modules/hardware/video/nvidia.nix index a9b04bcc85959..f93fcb814f6ce 100644 --- a/nixos/modules/hardware/video/nvidia.nix +++ b/nixos/modules/hardware/video/nvidia.nix @@ -231,6 +231,11 @@ in ); message = "Required files for driver based power management don't exist."; } + + { + assertion = cfg.open -> (cfg.package ? open && cfg.package ? firmware); + message = "This version of NVIDIA driver does not provide a corresponding opensource kernel driver"; + } ]; # If Optimus/PRIME is enabled, we: |