diff --git a/hostsModules/laptop/scripts/autoUpdate.nix b/hostsModules/laptop/scripts/autoUpdate.nix index b1e2be1..5828ede 100644 --- a/hostsModules/laptop/scripts/autoUpdate.nix +++ b/hostsModules/laptop/scripts/autoUpdate.nix @@ -31,7 +31,7 @@ pkgs.writeShellApplication { if sudo nixos-rebuild switch --flake "$FLAKE" 2> "$ERROR_FILE"; then - if ! git -C "$FLAKE_DIR" diff --quiet; then + if ! git -C "$FLAKE_DIR" diff --quiet -- flake.lock; then git -C "$FLAKE_DIR" add flake.lock git -C "$FLAKE_DIR" commit -m "flake.lock: autoupdate-$TIME" git -C "$FLAKE_DIR" push