From 5ae9886929ecdbda5fad795929b924d62bc8e002 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Mon, 7 Aug 2023 14:39:38 +0300 Subject: [PATCH] deployerbot: set PATH in systemd service definition --- modules/services/deployerbot/default.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/services/deployerbot/default.nix b/modules/services/deployerbot/default.nix index 353905e..8d516a7 100644 --- a/modules/services/deployerbot/default.nix +++ b/modules/services/deployerbot/default.nix @@ -36,6 +36,7 @@ systemd.services.deployerbot = { description = "Update all known systems"; environment = {TZ = "UTC";}; + path = [ pkgs.git pkgs.openssh pkgs.nix ]; serviceConfig = { Type = "oneshot"; User = "deployerbot-main"; @@ -46,8 +47,6 @@ deployDerivationsStr = builtins.concatStringsSep " " deployDerivations; in '' set -x - export PATH=$PATH:${pkgs.git}/bin:${pkgs.openssh}/bin:${pkgs.nix}/bin - export GIT_SSH_COMMAND="ssh -i ''${CREDENTIALS_DIRECTORY}/ssh-key" if [[ ! -d config ]]; then git clone ${repo} config