13 lines
371 B
Nix
13 lines
371 B
Nix
|
{ pkgs, ... }:
|
||
|
{
|
||
|
services.xserver.videoDrivers = [ "amdgpu" ]; # for some reason nixos-hardware uses "modesetting"
|
||
|
# assumes common-gpu-amd from nixos-hardware is also added
|
||
|
nixpkgs.config.rocmSupport = true;
|
||
|
systemd.tmpfiles.rules = [
|
||
|
"L+ /opt/rocm/hip - - - - ${pkgs.hip}"
|
||
|
];
|
||
|
environment.systemPackages = with pkgs; [
|
||
|
nvtop
|
||
|
];
|
||
|
}
|