From 6cefdcbb5557ed591394270bfdf933b5c2b6ba91 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 27 Feb 2024 22:29:34 +0300 Subject: [PATCH] nvidia huanan --- hosts/dlaptop/configuration.nix | 3 --- hosts/huanan/configuration.nix | 3 ++- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/hosts/dlaptop/configuration.nix b/hosts/dlaptop/configuration.nix index aa07e37..86af71d 100644 --- a/hosts/dlaptop/configuration.nix +++ b/hosts/dlaptop/configuration.nix @@ -18,9 +18,6 @@ driSupport32Bit = true; }; - # Load nvidia driver for Xorg and Wayland - services.xserver.videoDrivers = ["nvidia"]; # or "nvidiaLegacy470 etc. - nixpkgs.overlays = [ (final: prev: { gnome = prev.gnome.overrideScope' (gnomeFinal: gnomePrev: { diff --git a/hosts/huanan/configuration.nix b/hosts/huanan/configuration.nix index 70502a3..8e3c4d8 100644 --- a/hosts/huanan/configuration.nix +++ b/hosts/huanan/configuration.nix @@ -36,7 +36,8 @@ ]; xdg.ausl.extraPortals = with pkgs; [ xdg-desktop-ausl-hyprland ]; - + services.xserver.videoDrivers = ["nvidia"]; + hardware.nvidia = { modesetting.enable = true; powerManagement.enable = false;