nix-config/nixos/_mixins/hardware/gpu.nix
2023-10-02 12:37:07 -04:00

16 lines
268 B
Nix

{ config, lib, pkgs, ...}: {
environment.systemPackages = with pkgs;
[
clinfo
libva-utils
python311Packages.gpustat
vdpauinfo
] ++ (if lib.elem "nvidia" config.services.xserver.videoDrivers then
[
nvtop
]
else
[
nvtop-amd
]);
}