feat: Add configurations for nvidia microarchitectures with configs for the open source drivers

This commit is contained in:
Bradley Nelson
2024-08-31 16:40:11 -06:00
committed by mergify[bot]
parent 24bc1f98d8
commit 4ac7150415
6 changed files with 49 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
{lib, config, ...}:
let
nividiaPackage = config.hardware.nvidia.package;
in
{
imports = [ ../. ];
# enable the opensorce drivers if the package supports it
hardware.nvidia.open = lib.mkDefault (nividiaPackage ? open && nividiaPackage ? firmware);
}