From 8f0bcc35f0c0f5909215db7dea01b5ef8c2bc9a9 Mon Sep 17 00:00:00 2001 From: Valentin Gagarin Date: Tue, 18 Mar 2025 09:52:14 +0100 Subject: [PATCH] fix: run `manage` in service directory for everything else it will error on CHDIR, even if $PWD has the right owner and permissions. --- panel/nix/configuration.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panel/nix/configuration.nix b/panel/nix/configuration.nix index d790e30c..e261fd95 100644 --- a/panel/nix/configuration.nix +++ b/panel/nix/configuration.nix @@ -58,13 +58,13 @@ let text = '' systemd-run --pty \ - --same-dir \ --wait \ --collect \ --service-type=exec \ --unit "manage-${name}.service" \ --property "User=${name}" \ --property "Group=${name}" \ + --property "WorkingDirectory=/var/lib/${name}" \ --property "Environment=DATABASE_URL=${database-url} USER_SETTINGS_FILE=${configFile}" \ '' + optionalString (credentials != [ ]) (