deployerbot: set PATH in systemd service definition
This commit is contained in:
parent
afb9c5f309
commit
5ae9886929
@ -36,6 +36,7 @@
|
|||||||
systemd.services.deployerbot = {
|
systemd.services.deployerbot = {
|
||||||
description = "Update all known systems";
|
description = "Update all known systems";
|
||||||
environment = {TZ = "UTC";};
|
environment = {TZ = "UTC";};
|
||||||
|
path = [ pkgs.git pkgs.openssh pkgs.nix ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
User = "deployerbot-main";
|
User = "deployerbot-main";
|
||||||
@ -46,8 +47,6 @@
|
|||||||
deployDerivationsStr = builtins.concatStringsSep " " deployDerivations;
|
deployDerivationsStr = builtins.concatStringsSep " " deployDerivations;
|
||||||
in ''
|
in ''
|
||||||
set -x
|
set -x
|
||||||
export PATH=$PATH:${pkgs.git}/bin:${pkgs.openssh}/bin:${pkgs.nix}/bin
|
|
||||||
|
|
||||||
export GIT_SSH_COMMAND="ssh -i ''${CREDENTIALS_DIRECTORY}/ssh-key"
|
export GIT_SSH_COMMAND="ssh -i ''${CREDENTIALS_DIRECTORY}/ssh-key"
|
||||||
if [[ ! -d config ]]; then
|
if [[ ! -d config ]]; then
|
||||||
git clone ${repo} config
|
git clone ${repo} config
|
||||||
|
Loading…
Reference in New Issue
Block a user