more nvidia shit IIIII

This commit is contained in:
cnst
2024-09-22 18:52:09 +02:00
parent 1b25ba1c7e
commit 20d837ec33
2 changed files with 3 additions and 4 deletions

View File

@@ -1,4 +1,3 @@
# kernel.nix
{
pkgs,
lib,
@@ -56,8 +55,8 @@ in {
++ (
if cfg.hardware == "amd"
then ["amd_pstate=active"]
else if cfg.hardware == "nvidia"
then ["nvidia-drm.modeset=1" "nvidia-drm.fbdev=1"]
# else if cfg.hardware == "nvidia"
# then []
else []
)
++ cfg.extraKernelParams;