From cc135479efdf0a1b3b48e5c92ea984781a2fe1b6 Mon Sep 17 00:00:00 2001 From: Val Packett Date: Fri, 5 Dec 2025 04:09:32 -0300 Subject: [PATCH] systemd: chown XDG_RUNTIME_DIR again This was temporarily gone due to refactorings (throwing out tmpfiles). --- nixosModules/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixosModules/default.nix b/nixosModules/default.nix index 101d4ce..5866fb0 100644 --- a/nixosModules/default.nix +++ b/nixosModules/default.nix @@ -179,6 +179,7 @@ in { ]; User = "appvm"; Group = "appvm"; + ExecStartPre = "+/run/current-system/sw/bin/chown appvm:appvm ${runtimeDir}"; ExecStart = "/opt/bin/muvm-remote"; ExecStopPost = ''+${pkgs.python3}/bin/python -c "import os,fcntl,struct;print(os.getenv('EXIT_STATUS', '1'));fcntl.ioctl(os.open('/', os.O_RDONLY), 0x7602, int(os.getenv('EXIT_STATUS', '1')))"''; } // useTTY;