diff options
author | Soispha <soispha@vhack.eu> | 2023-07-05 21:18:46 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-07-05 21:18:46 +0200 |
commit | 3df8d67f6be90fe4561133602052fff719883be7 (patch) | |
tree | 1b52f598a5a8400a4d485188ad89cc8e426f24fd | |
parent | Fix(system/services/nix-sync): Generate the needed repo paths (diff) | |
download | nixos-server-3df8d67f6be90fe4561133602052fff719883be7.tar.gz nixos-server-3df8d67f6be90fe4561133602052fff719883be7.zip |
Fix(system/services/nix-sync): Pull before rebuilding
-rw-r--r-- | system/services/nix-sync/default.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/system/services/nix-sync/default.nix b/system/services/nix-sync/default.nix index c4ad282..d54e4da 100644 --- a/system/services/nix-sync/default.nix +++ b/system/services/nix-sync/default.nix @@ -66,6 +66,8 @@ if ! [ -L ${esa repo.path} ]; then cd ${esa repoCachePath}; + git pull; + out_paths=$(mktemp); nix build . --print-out-paths --experimental-features 'nix-command flakes' > "$out_paths"; [ "$(wc -l < "$out_paths")" -gt 1 ] && (echo "To many out-paths"; exit 1) |