about summary refs log tree commit diff
path: root/nixos/modules/hardware/video
diff options
context:
space:
mode:
authornikstur <nikstur@outlook.com>2023-10-28 23:46:09 +0200
committernikstur <nikstur@outlook.com>2023-12-29 03:21:32 +0100
commit80fa4731f9ce5c0e5e70b0ed7c73730f043a9f1d (patch)
tree5b2dea5225bae0236ef17c36ca9faf9559a16a55 /nixos/modules/hardware/video
parent994df434ba29b9774efe56d23270a8dc150c68ce (diff)
nixos/amdgpu-pro: replacce activationScript via tmpfiles
Diffstat (limited to 'nixos/modules/hardware/video')
-rw-r--r--nixos/modules/hardware/video/amdgpu-pro.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/nixos/modules/hardware/video/amdgpu-pro.nix b/nixos/modules/hardware/video/amdgpu-pro.nix
index 605aa6ef8b88a..2a86280eec8cb 100644
--- a/nixos/modules/hardware/video/amdgpu-pro.nix
+++ b/nixos/modules/hardware/video/amdgpu-pro.nix
@@ -39,9 +39,10 @@ in
 
     hardware.firmware = [ package.fw ];
 
-    system.activationScripts.setup-amdgpu-pro = ''
-      ln -sfn ${package}/opt/amdgpu{,-pro} /run
-    '';
+    systemd.tmpfiles.settings.amdgpu-pro = {
+      "/run/amdgpu"."L+".argument = "${package}/opt/amdgpu";
+      "/run/amdgpu-pro"."L+".argument = "${package}/opt/amdgpu-pro";
+    };
 
     system.requiredKernelConfig = with config.lib.kernelConfig; [
       (isYes "DEVICE_PRIVATE")