[system]: Nvidia
This commit is contained in:
+24
-1
@@ -1,4 +1,4 @@
|
||||
{
|
||||
{ config, ...}: {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./packages.nix
|
||||
@@ -18,4 +18,27 @@
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ]; # Enabling flakes
|
||||
|
||||
system.stateVersion = "23.05"; # Don't change it bro
|
||||
|
||||
hardware.opengl = {
|
||||
enable = true;
|
||||
driSupport = true;
|
||||
driSupport32Bit = true;
|
||||
};
|
||||
|
||||
services.xserver.videoDrivers = [ "nvidia" ];
|
||||
|
||||
hardware.nvidia = {
|
||||
modesetting.enable = true;
|
||||
powerManagement.enable = true;
|
||||
powerManagement.finegrained = false;
|
||||
open = false;
|
||||
nvidiaSettings = true;
|
||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||
|
||||
prime = {
|
||||
sync.enable = true;
|
||||
intelBusId = "PCI:0:2:0";
|
||||
nvidiaBusId = "PCI:1:0:0";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.initrd.kernelModules = [ "amdgpu" ];
|
||||
boot.initrd.kernelModules = [ "nvidia" ];
|
||||
boot.kernelParams = [ "psmouse.synaptics_intertouch=0" ];
|
||||
}
|
||||
|
||||
@@ -102,7 +102,6 @@
|
||||
pamixer
|
||||
|
||||
# GPU stuff
|
||||
#amdvlk
|
||||
rocm-opencl-icd
|
||||
glaxnimate
|
||||
|
||||
|
||||
Reference in New Issue
Block a user