adds nvtop for all hosts
All checks were successful
Nix Format Check / check-format (push) Successful in 1m14s

This commit is contained in:
Menno van Leeuwen 2024-11-18 21:28:34 +01:00
parent 994d0cdedd
commit 93b1aba78d
Signed by: vleeuwenmenno
SSH Key Fingerprint: SHA256:OJFmjANpakwD3F2Rsws4GLtbdz1TJ5tkQF0RZmF0TRE
3 changed files with 11 additions and 1 deletions

View File

@ -33,12 +33,13 @@
]; ];
}; };
# Add ROCm packages # Add ROCm packages and nvtop
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
rocmPackages.rocm-smi rocmPackages.rocm-smi
rocmPackages.clr rocmPackages.clr
rocmPackages.rocm-core rocmPackages.rocm-core
rocmPackages.hipcc rocmPackages.hipcc
rocmPackages.rocm-device-libs rocmPackages.rocm-device-libs
nvtopPackages.amd
]; ];
} }

View File

@ -19,6 +19,12 @@
# Load nvidia driver for Xorg and Wayland # Load nvidia driver for Xorg and Wayland
services.xserver.videoDrivers = [ "nvidia" ]; services.xserver.videoDrivers = [ "nvidia" ];
# nvtop, a system monitor for GPUs
environment.systemPackages = with pkgs; [
nvtopPackages.nvidia
nvtopPackages.amd
];
hardware.nvidia = { hardware.nvidia = {
# Modesetting is required. # Modesetting is required.
modesetting.enable = true; modesetting.enable = true;

View File

@ -27,6 +27,9 @@
driSupport32Bit = true; driSupport32Bit = true;
}; };
# nvtop, a system monitor for GPUs
environment.systemPackages = with pkgs; [ nvtopPackages.nvidia ];
# Enable NVIDIA Docker support # Enable NVIDIA Docker support
# test with: $ docker run --rm -it --device=nvidia.com/gpu=all ubuntu:latest nvidia-smi # test with: $ docker run --rm -it --device=nvidia.com/gpu=all ubuntu:latest nvidia-smi
hardware.nvidia-container-toolkit.enable = true; hardware.nvidia-container-toolkit.enable = true;