initial commit + sops!
This commit is contained in:
21
hosts/common/nvidia.nix
Normal file
21
hosts/common/nvidia.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
#nvidia-docker
|
||||
];
|
||||
|
||||
hardware.nvidia = {
|
||||
modesetting.enable = true;
|
||||
powerManagement.enable = true;
|
||||
powerManagement.finegrained = false;
|
||||
open = false;
|
||||
nvidiaSettings = true;
|
||||
|
||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||
};
|
||||
virtualisation.docker.enableNvidia = true;
|
||||
services.xserver.videoDrivers = ["nvidia"];
|
||||
}
|
||||
Reference in New Issue
Block a user