summaryrefslogtreecommitdiffstats
path: root/nixos/modules/hardware
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules/hardware')
-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 605aa6ef8b88..2a86280eec8c 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")