I tried following the Nvidia guide on the Nixos wiki. Nothing works!! I’ve been tweaking my config for the last two days, mixing and matching different settings to no avail.
I have a Dell 16 Plus 7630. Nvidia rtx 4060
Here’s what’s in my configuration.nix right now:
boot = {
loader.systemd-boot.enable = true;
loader.efi.canTouchEfiVariables = true;
kernelParams =
[ “acpi_rev_override” “mem_sleep_default=deep” “nvidia-drm.modeset=1” ];
kernelPackages = pkgs.linuxPackages_zen;
extraModulePackages = [ config.boot.kernelPackages.nvidia_x11 ];
};
Enable the X11 windowing system.
services.xserver.enable = true;
Enable the GNOME Desktop Environment.
services.xserver.displayManager.gdm.enable = true;
services.xserver.desktopManager.gnome.enable = true;
dconf
programs.dconf.enable = true;
#Nvidia
services.xserver.videoDrivers = [“nvidia”];
services.xserver.config = ‘’
Section “Device”
Identifier “Intel Graphics”
Driver “intel”
#Option “AccelMethod” “sna” # default
#Option “AccelMethod” “uxa” # fallback
Option “TearFree” “true”
Option “SwapbuffersWait” “true”
BusID “PCI:0:2:0”
#Option “DRI” “2” # DRI3 is now default
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0"
Option "AllowEmptyInitialConfiguration"
EndSection
‘’;
services.xserver.screenSection = ‘’
Option “metamodes” “nvidia-auto-select +0+0 {ForceFullCompositionPipeline=On}”
Option “AllowIndirectGLXProtocol” “off”
Option “TripleBuffer” “on”
‘’;
hardware.nvidia.modesetting.enable = true;
hardware.nvidia.prime.offload.enable = pkgs.lib.mkForce false;
hardware.nvidia.prime.sync.enable = pkgs.lib.mkForce true;
hardware.nvidia.powerManagement.enable = pkgs.lib.mkForce false;
hardware.nvidia.powerManagement.finegrained = pkgs.lib.mkForce false;
hardware.nvidia.prime.intelBusId = “PCI:0:2:0”;
hardware.nvidia.prime.nvidiaBusId = “PCI:1:0:0”;