Fix nvidia-optimus.nix

This commit is contained in:
NullBite 2023-12-28 01:05:43 -05:00
parent 973a31859d
commit 4ad235b98d
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A

View File

@ -1,11 +1,12 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
services.supergfxd.enable = true;
specialisation = { specialisation = {
nvidia.configuration = { nvidia.configuration = {
system.nixos.tags = [ "NVIDIA" ] system.nixos.tags = [ "NVIDIA" ];
services.supergfxd.enable = true;
# Load nvidia driver for Xorg and Wayland # Load nvidia driver for Xorg and Wayland
services.xserver.videoDrivers = ["amdgpu" "nvidia"]; services.xserver.videoDrivers = ["amdgpu" "nvidia"];