added nvidia drivers
This commit is contained in:
@@ -10,6 +10,7 @@
|
|||||||
server02Configuration
|
server02Configuration
|
||||||
core
|
core
|
||||||
server02DiskConfiguration
|
server02DiskConfiguration
|
||||||
|
nvidiaDrivers
|
||||||
]
|
]
|
||||||
++ (with inputs.nix-config.nixosModules; [
|
++ (with inputs.nix-config.nixosModules; [
|
||||||
nvim
|
nvim
|
||||||
|
|||||||
17
modules/system/drivers/nvidia.nix
Normal file
17
modules/system/drivers/nvidia.nix
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
{moduleWithSystem, ...}: {
|
||||||
|
flake.nixosModules.nvidiaDrivers = moduleWithSystem ({config, ...}: {
|
||||||
|
hardware.graphics = {
|
||||||
|
enable = true;
|
||||||
|
enable32Bit = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
hardware.nvidia = {
|
||||||
|
modesetting.enable = true;
|
||||||
|
powerManagement.enable = false;
|
||||||
|
powerManagement.finegrained = false;
|
||||||
|
open = false;
|
||||||
|
nvidiaSettings = true;
|
||||||
|
package = config.boot.kernelPackages.nvidiaPackages.legacy_580;
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user