diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2023-12-29 18:00:57 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-29 18:00:57 +0000 |
commit | f50aae4fb10dd51bd6ffcce0eb96d02b608a9595 (patch) | |
tree | 6bf15f7a57e65ea4dc49d7bc74803990631cd14f /nixos/modules/hardware | |
parent | 895cd4b126fc9d8f3009149e81ab12189969dd38 (diff) | |
parent | 01962add7e97c051a6c2dd2a013d7e7c8ec2388a (diff) |
Merge master into staging-next
Diffstat (limited to 'nixos/modules/hardware')
-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") |