Fix docker nvidia.

This commit is contained in:
GRMrGecko 2025-03-18 13:43:25 -05:00
parent 9b72f47f19
commit bc6d0fb4f6
2 changed files with 18 additions and 0 deletions

View File

@ -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;

View File

@ -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.