diff options
author | nikstur <nikstur@outlook.com> | 2023-10-28 23:46:09 +0200 |
---|---|---|
committer | nikstur <nikstur@outlook.com> | 2023-12-29 03:21:32 +0100 |
commit | 80fa4731f9ce5c0e5e70b0ed7c73730f043a9f1d (patch) | |
tree | 5b2dea5225bae0236ef17c36ca9faf9559a16a55 /nixos/modules/hardware/video | |
parent | 994df434ba29b9774efe56d23270a8dc150c68ce (diff) |
nixos/amdgpu-pro: replacce activationScript via tmpfiles
Diffstat (limited to 'nixos/modules/hardware/video')
-rw-r--r-- | nixos/modules/hardware/video/amdgpu-pro.nix | 7 |
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") |