diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2024-09-11 08:12:58 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2024-09-11 08:12:58 +0200 |
commit | 211c680cb30b635cb7b8a54bc4471ac567432a3a (patch) | |
tree | 4a70d2b32f968e04af817900bf5a9935a4bb5acb /modules/nvidia.nix | |
parent | 56109f4de719ea1917b7a1a55d9e4b427f65c701 (diff) | |
download | nixos-211c680cb30b635cb7b8a54bc4471ac567432a3a.tar nixos-211c680cb30b635cb7b8a54bc4471ac567432a3a.tar.gz nixos-211c680cb30b635cb7b8a54bc4471ac567432a3a.tar.bz2 nixos-211c680cb30b635cb7b8a54bc4471ac567432a3a.tar.xz nixos-211c680cb30b635cb7b8a54bc4471ac567432a3a.zip |
bump
Diffstat (limited to 'modules/nvidia.nix')
-rw-r--r-- | modules/nvidia.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/nvidia.nix b/modules/nvidia.nix new file mode 100644 index 00000000..2f7a00aa --- /dev/null +++ b/modules/nvidia.nix | |||
@@ -0,0 +1,10 @@ | |||
1 | { lib, config, ... }: | ||
2 | |||
3 | { | ||
4 | config = { | ||
5 | hardware.nvidia = { | ||
6 | open = lib.mkDefault (!(lib.versionOlder config.hardware.nvidia.package.version "560")); | ||
7 | # gsp.enable = lib.mkDefault (config.hardware.nvidia.open || lib.versionAtLeast config.hardware.nvidia.package.version "555"); | ||
8 | }; | ||
9 | }; | ||
10 | } | ||