From b4eb9f00ff4d656883ed1d6a5ddb79049ed1210c Mon Sep 17 00:00:00 2001 From: xenia Date: Sat, 14 Jun 2025 20:25:28 +0200 Subject: [PATCH] rocm fix --- nixos/machines/gender-station/machine.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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}" + ]; }