nvidia drivers
This commit is contained in:
@@ -1,17 +1,18 @@
|
||||
{moduleWithSystem, ...}: {
|
||||
flake.nixosModules.nvidiaDrivers = moduleWithSystem ({config, ...}: {
|
||||
flake.nixosModules.nvidiaDrivers = moduleWithSystem ({unfreePkgs, ...}: {
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
enable32Bit = true;
|
||||
};
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
services.xserver.videoDrivers = ["nvidia"];
|
||||
|
||||
hardware.nvidia = {
|
||||
modesetting.enable = true;
|
||||
powerManagement.enable = false;
|
||||
powerManagement.finegrained = false;
|
||||
open = false;
|
||||
nvidiaSettings = true;
|
||||
package = config.boot.kernelPackages.nvidiaPackages.legacy_580;
|
||||
package = unfreePkgs.linuxPackages_latest.nvidiaPackages.legacy_580;
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user