From 96e52c3fccaf83d60873832bf4205ca07f7080cb Mon Sep 17 00:00:00 2001 From: Veneficium <85629831+veneficium42@users.noreply.github.com> Date: Wed, 3 Jul 2024 18:05:32 +0200 Subject: [PATCH] update: add nvidia specialisation --- hosts/main-laptop/configuration.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hosts/main-laptop/configuration.nix b/hosts/main-laptop/configuration.nix index 7de10f5..d95b109 100644 --- a/hosts/main-laptop/configuration.nix +++ b/hosts/main-laptop/configuration.nix @@ -22,6 +22,14 @@ services.audio.enable = lib.mkForce true; }; + specialisation = { + nvidia.configuration = { + settings.drivers.gpu.nvidia.forceDisable = lib.mkForce false; + settings.drivers.gpu.nvidia.enable = lib.mkForce false; + settings.services.switcheroo.enable = lib.mkForce true; + }; + }; + #enable wayland for electron programs environment.sessionVariables.NIXOS_OZONE_WL = "1";