diff options
| author | Xe Iaso <me@xeiaso.net> | 2023-04-05 09:05:49 -0400 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2023-04-05 09:05:49 -0400 |
| commit | 28871a0b3f71985652519ee6b5a64d2f3b7f7367 (patch) | |
| tree | d519d8c8a3c55d9798317a7be877ccd71ce2c6d3 | |
| parent | ed1c5538cca97fa60942b7f942ac031937e13572 (diff) | |
| download | x-28871a0b3f71985652519ee6b5a64d2f3b7f7367.tar.xz x-28871a0b3f71985652519ee6b5a64d2f3b7f7367.zip | |
nix/vest-pit-near: fix environment variables
Signed-off-by: Xe Iaso <me@xeiaso.net>
| -rw-r--r-- | nix/vest-pit-near.nix | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/nix/vest-pit-near.nix b/nix/vest-pit-near.nix index 0ce724f..7d14559 100644 --- a/nix/vest-pit-near.nix +++ b/nix/vest-pit-near.nix @@ -26,21 +26,23 @@ in { config = mkIf cfg.enable { systemd.services.vest-pit-near = { wantedBy = [ "multi-user.target" ]; - after = [ "within-homedir.service" ]; - environment.STATE_DIR = "/var/lib/private/vest-pit-near"; + environment = { + HOME = "/var/lib/private/vest-pit-near"; + STATE_DIR = "/var/lib/private/vest-pit-near"; + }; serviceConfig = { DynamicUser = "true"; SupplementaryGroups = [ "docker" ]; Restart = "always"; RestartSec = "30s"; - ExecStart = - "${cfg.package}/bin/vest-pit-near"; + ExecStart = "${cfg.package}/bin/vest-pit-near"; RuntimeDirectory = "vest-pit-near"; RuntimeDirectoryMode = "0755"; StateDirectory = "vest-pit-near"; StateDirectoryMode = "0700"; CacheDirectory = "vest-pit-near"; CacheDirectoryMode = "0750"; + WorkingDirectory = "/var/lib/private/vest-pit-near"; }; }; }; |
