Compare commits

..

No commits in common. "eca3a72a8f1e5c3e6b200c0e2426b62bcd2c6b49" and "4efc1d3e6143109d1f1181eb94a002eb075d3243" have entirely different histories.

1 changed files with 1 additions and 31 deletions

View File

@ -37,7 +37,6 @@ in
timeout = 3;
};
};
boot.kernelParams = [ "i915.enable_psr=0" ];
networking = {
hostName = "sparky";
@ -45,43 +44,14 @@ in
enableIPv6 = false;
};
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
# Add additional package names here
"nvidia-x11"
"nvidia-settings"
"nvidia-persistenced"
];
services.displayManager.defaultSession = "cinnamon";
services.libinput.enable = true;
services.displayManager.defaultSession = "cinnamon";
services.xserver = {
enable = true;
videoDrivers = [ "nvidia" ];
displayManager.lightdm.enable = true;
exportConfiguration = true;
deviceSection = ''
'';
desktopManager = {
cinnamon.enable = true;
};
};
# Enable OpenGL
hardware.opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
};
# Load nvidia driver
hardware.nvidia = {
# https://nixos.wiki/wiki/Nvidia
modesetting.enable = true;
powerManagement.enable = false;
open = false;
nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.stable;
};
}