From 3df8d67f6be90fe4561133602052fff719883be7 Mon Sep 17 00:00:00 2001 From: Soispha Date: Wed, 5 Jul 2023 21:18:46 +0200 Subject: Fix(system/services/nix-sync): Pull before rebuilding --- system/services/nix-sync/default.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'system/services') 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) -- cgit 1.4.1