Initial commit
This commit is contained in:
commit
e886de58af
23 changed files with 926 additions and 0 deletions
18
modules/nvidia.nix
Normal file
18
modules/nvidia.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
services.xserver.videoDrivers = [ "nvidia" ];
|
||||
|
||||
hardware.nvidia = {
|
||||
modesetting.enable = true;
|
||||
powerManagement.enable = true;
|
||||
# Set to true for RTX 4000 series and newer GPUs
|
||||
open = true;
|
||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||
nvidiaSettings = true;
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
cudaPackages.cudatoolkit
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue