From 20d837ec33b67e09f8e5a75c01d7b8dbb4d73af1 Mon Sep 17 00:00:00 2001 From: cnst Date: Sun, 22 Sep 2024 18:52:09 +0200 Subject: [PATCH] more nvidia shit IIIII --- hosts/toothpc/modules.nix | 2 +- system/modules/boot/kernel/default.nix | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/hosts/toothpc/modules.nix b/hosts/toothpc/modules.nix index d991b13e..bd7cb2f3 100644 --- a/hosts/toothpc/modules.nix +++ b/hosts/toothpc/modules.nix @@ -6,7 +6,7 @@ lanzaboote.enable = true; }; kernel = { - variant = "latest"; + variant = "cachyos"; hardware = "nvidia"; extraKernelParams = []; extraBlacklistedModules = []; diff --git a/system/modules/boot/kernel/default.nix b/system/modules/boot/kernel/default.nix index 72fa3795..7f7610c3 100644 --- a/system/modules/boot/kernel/default.nix +++ b/system/modules/boot/kernel/default.nix @@ -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;