Make NVIDIA driver bullshit only apply to strawberry

This commit is contained in:
Riley Apeldoorn 2023-06-17 08:23:25 +02:00
parent 84fdac4865
commit 54f72cbcc0
2 changed files with 4 additions and 2 deletions

View file

@ -12,7 +12,6 @@ in {
config = lib.mkIf (cfg.enable) { config = lib.mkIf (cfg.enable) {
hardware.opengl.enable = true; hardware.opengl.enable = true;
hardware.nvidia.modesetting.enable = true;
security.rtkit.enable = true; security.rtkit.enable = true;
@ -21,7 +20,6 @@ in {
services.xserver = { services.xserver = {
enable = true; enable = true;
displayManager.gdm.enable = true; displayManager.gdm.enable = true;
videoDrivers = [ "nvidia" ];
}; };
services.pipewire = { services.pipewire = {

View file

@ -47,4 +47,8 @@
swapDevices = [ swapDevices = [
{ device = "/dev/nixos/swap"; } { device = "/dev/nixos/swap"; }
]; ];
services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia.modesetting.enable = true;
} }