nix-config/nixos/_mixins/hardware/gpu.nix

17 lines
268 B
Nix
Raw Normal View History

2023-10-02 16:36:47 +00:00
{ 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
]);
}