]> git.immae.eu Git - perso/Immae/Config/Nix.git/blobdiff - Makefile
Add monitoring script with smartctl
[perso/Immae/Config/Nix.git] / Makefile
index 6282df21cdcb79a8e2a5166d5bbe1402c8571160..d4b41540bb297597492498ce77dab2b7d4af224f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,9 @@ nur:
        ./scripts/make-nur
        curl -o /dev/null -XPOST "https://nur-update.herokuapp.com/update?repo=immae"
 
+push_remote:
+       git push origin $$(stg id {base}):master
+
 shellcheck:
        shellcheck scripts/* deploy/scripts/* modules/private/gitolite/gitolite_ldap_groups.sh modules/private/ssh/ldap_authorized_keys.sh modules/private/pub/restrict
 
@@ -34,6 +37,7 @@ refresh_flakes:
                else \
                ./scripts/refresh_flakes --no-new-inputs; \
                fi
+       (cd deploy ; nix flake lock --update-input secrets || true)
        (cd deploy ; nix flake lock --update-input secrets-local || true)
 
 .PHONY: refresh_flakes
@@ -62,6 +66,7 @@ ssh:
 ssh-zoldene-decrypt:
        $(MAKE) ssh-decrypt TARGET=$(@:ssh-%-decrypt=%)
 ssh-decrypt:
+       until ping -c1 $(TARGET); do :; done
        ./scripts/with_env bash -c 'ssh -p 2222 -i $$SSH_IDENTITY_FILE root@$(TARGET) $(SSH_ARGS)'
 
 .PHONY: debug $(addprefix debug-,$(nodes))