fixes in deployment script

This commit is contained in:
Motiejus Jakštys 2023-07-28 15:49:51 +03:00
parent 61d8617519
commit bff8cef210

View File

@ -58,14 +58,21 @@
${pkgs.git}/bin/git reset --hard origin/main
fi
export PATH=$PATH:${pkgs.git}/bin
export PATH=$PATH:${pkgs.git}/bin:${pkgs.nix}/bin
${pkgs.nix}/bin/nix flake update --accept-flake-config --commit-lock-file
${pkgs.git}/bin/git push origin main
exec ${pkgs.nix}/bin/nix run .#deploy-rs ${deployDerivations}
export PATH=$PATH:${pkgs.openssh}/bin
exec ${pkgs.nix}/bin/nix run .#deploy-rs -- ${deployDerivations}
'';
};
#systemd.timers.updaterbot = {
# description = "updaterbot timer";
# wantedBy = ["timers.target"];
# timerConfig.OnCalendar = "";
#};
mj.base.unitstatus.units = ["updaterbot"];
nix.settings.trusted-users = ["updaterbot"];