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

17 lines
307 B
Nix
Raw Normal View History

2023-10-16 18:46:06 +00:00
{ config, lib, pkgs, ... }: {
2023-10-02 16:36:47 +00:00
environment.systemPackages = with pkgs;
2023-10-16 18:46:06 +00:00
[
clinfo
libva-utils
python311Packages.gpustat
vdpauinfo
] ++ (if lib.elem "nvidia" config.services.xserver.videoDrivers then
[
nvtop
]
else
[
nvtop-amd
]);
2023-10-02 16:36:47 +00:00
}