From d32ca67e537c5e374ad77e459077b80ea1470b33 Mon Sep 17 00:00:00 2001 From: iFargle Date: Wed, 23 Aug 2023 23:40:37 +0900 Subject: [PATCH] test --- nixos/common/desktops/gnome/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nixos/common/desktops/gnome/default.nix b/nixos/common/desktops/gnome/default.nix index b57c3e62..1fdf219d 100644 --- a/nixos/common/desktops/gnome/default.nix +++ b/nixos/common/desktops/gnome/default.nix @@ -19,6 +19,11 @@ videoDrivers = [ "nvidia" ]; }; + ##### disable nvidia, very nice battery life. + hardware.nvidiaOptimus.disable = lib.mkDefault true; + boot.blacklistedKernelModules = lib.mkDefault [ "nouveau" "nvidia" ]; + services.xserver.videoDrivers = lib.mkDefault [ "intel" ]; + services.xserver = { # https://nixos.org/manual/nixos/stable/index.html#chap-gnome # Enable the GNOME Desktop Environment.