diff --git a/nixos/machines/gender-station/machine.nix b/nixos/machines/gender-station/machine.nix index 20bec06c..3bfed7bd 100644 --- a/nixos/machines/gender-station/machine.nix +++ b/nixos/machines/gender-station/machine.nix @@ -48,4 +48,20 @@ }; boot.supportedFilesystems."fuse.sshfs" = true; + + # for blender and other hip stuff + # https://wiki.nixos.org/wiki/AMD_GPU#HIP + systemd.tmpfiles.rules = + let + rocmEnv = pkgs.symlinkJoin { + name = "rocm-combined"; + paths = with pkgs.rocmPackages; [ + rocblas + hipblas + clr + ]; + }; + in [ + "L+ /opt/rocm - - - - ${rocmEnv}" + ]; }