Fix docker nvidia.
This commit is contained in:
parent
9b72f47f19
commit
bc6d0fb4f6
@ -96,6 +96,12 @@
|
||||
'';
|
||||
};
|
||||
|
||||
# Added paths.
|
||||
environment.etc."environment.d/00-custom-path.conf".text = ''
|
||||
PATH="$PATH:/usr/local/bin:/usr/local/sbin:/usr/local/ubin"
|
||||
'';
|
||||
|
||||
|
||||
# Nix Package Auto Cleanup
|
||||
nix = {
|
||||
settings.auto-optimise-store = true;
|
||||
|
@ -4,9 +4,21 @@
|
||||
# Display drivers.
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
enable32Bit = true;
|
||||
};
|
||||
services.xserver.videoDrivers = [ "nvidia" ];
|
||||
|
||||
# Docker
|
||||
hardware.nvidia-container-toolkit.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
cudatoolkit
|
||||
libGLU
|
||||
libGL
|
||||
libnvidia-container
|
||||
nvidia-container-toolkit
|
||||
];
|
||||
|
||||
hardware.nvidia = {
|
||||
|
||||
# Modesetting is required.
|
||||
|
Loading…
x
Reference in New Issue
Block a user