From 42e6cd95697600fa46ced7fe436e09ae035a2133 Mon Sep 17 00:00:00 2001 From: UnstoppableMango Date: Tue, 21 Oct 2025 18:37:31 -0500 Subject: [PATCH 1/2] WIP --- hosts/hades/configuration.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/hosts/hades/configuration.nix b/hosts/hades/configuration.nix index 49e5fa5..f788836 100644 --- a/hosts/hades/configuration.nix +++ b/hosts/hades/configuration.nix @@ -590,6 +590,17 @@ hardware.openrazer.enable = true; + hardware.nvidia = { + # Open drivers (NVreg_OpenRmEnableUnsupportedGpus=1) + open = true; + + # nvidia-drm.modeset=1 + modesetting.enable = true; + + # NVreg_PreserveVideoMemoryAllocations=1 + powerManagement.enable = true; + }; + # List packages installed in system profile. To search, run: # $ nix search wget environment.systemPackages = with pkgs; [ From c9a477d730ee3a950012166d506f297343af2a24 Mon Sep 17 00:00:00 2001 From: UnstoppableMango Date: Wed, 22 Oct 2025 21:26:13 -0500 Subject: [PATCH 2/2] The other thing --- hosts/hades/configuration.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hosts/hades/configuration.nix b/hosts/hades/configuration.nix index f788836..9e98482 100644 --- a/hosts/hades/configuration.nix +++ b/hosts/hades/configuration.nix @@ -35,9 +35,6 @@ boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; - # Preserve video memory after suspend - boot.kernelParams = [ "nvidia.NVreg_PreserveVideoMemoryAllocations=1" ]; - networking.hostName = "hades"; # Define your hostname. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. networking.networkmanager.enable = true; @@ -597,6 +594,7 @@ # nvidia-drm.modeset=1 modesetting.enable = true; + # Preserve video memory after suspend # NVreg_PreserveVideoMemoryAllocations=1 powerManagement.enable = true; };