From 0eebd14349c2f5d23289a96f45c1084afc64af99 Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Thu, 5 Sep 2024 18:42:38 -0700 Subject: [PATCH] updated nvidia setting --- hosts/Alaska/default.nix | 5 +++++ hosts/desktop/default.nix | 9 ++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/hosts/Alaska/default.nix b/hosts/Alaska/default.nix index 6856f88..0bbd017 100644 --- a/hosts/Alaska/default.nix +++ b/hosts/Alaska/default.nix @@ -68,6 +68,11 @@ services.xserver.videoDrivers = [ "nvidia" ]; hardware.graphics.enable = true; + hardware.nvidia = { + package = config.boot.kernelPackages.nvidiaPackages.stable; + modesetting.enable = true; + open = false; + }; networking = { nat = { diff --git a/hosts/desktop/default.nix b/hosts/desktop/default.nix index bd08bac..ef0246d 100644 --- a/hosts/desktop/default.nix +++ b/hosts/desktop/default.nix @@ -43,9 +43,12 @@ }; hardware.graphics.enable = true; - # Optionally, you may need to select the appropriate driver version for your specific GPU. - hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable; - hardware.nvidia.modesetting.enable = true; + hardware.nvidia = { + # Optionally, you may need to select the appropriate driver version for your specific GPU. + package = config.boot.kernelPackages.nvidiaPackages.stable; + modesetting.enable = true; + open = false; + }; environment.sessionVariables = { # Resolves jellyfin black screen under hyprland