From 211c680cb30b635cb7b8a54bc4471ac567432a3a Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 11 Sep 2024 08:12:58 +0200 Subject: bump --- modules/nvidia.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 modules/nvidia.nix (limited to 'modules/nvidia.nix') 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 @@ +{ lib, config, ... }: + +{ + config = { + hardware.nvidia = { + open = lib.mkDefault (!(lib.versionOlder config.hardware.nvidia.package.version "560")); + # gsp.enable = lib.mkDefault (config.hardware.nvidia.open || lib.versionAtLeast config.hardware.nvidia.package.version "555"); + }; + }; +} -- cgit v1.2.3