From 54f72cbcc0d648a363facad6104fb131c5479637 Mon Sep 17 00:00:00 2001 From: Riley Apeldoorn Date: Sat, 17 Jun 2023 08:23:25 +0200 Subject: [PATCH] Make NVIDIA driver bullshit only apply to `strawberry` --- shared/core/gui.nix | 2 -- system/strawberry/core.nix | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/shared/core/gui.nix b/shared/core/gui.nix index 92ef09d..2c2f326 100644 --- a/shared/core/gui.nix +++ b/shared/core/gui.nix @@ -12,7 +12,6 @@ in { config = lib.mkIf (cfg.enable) { hardware.opengl.enable = true; - hardware.nvidia.modesetting.enable = true; security.rtkit.enable = true; @@ -21,7 +20,6 @@ in { services.xserver = { enable = true; displayManager.gdm.enable = true; - videoDrivers = [ "nvidia" ]; }; services.pipewire = { diff --git a/system/strawberry/core.nix b/system/strawberry/core.nix index 46ccc7a..33ab96c 100644 --- a/system/strawberry/core.nix +++ b/system/strawberry/core.nix @@ -47,4 +47,8 @@ swapDevices = [ { device = "/dev/nixos/swap"; } ]; + + services.xserver.videoDrivers = [ "nvidia" ]; + hardware.nvidia.modesetting.enable = true; + }