]> git.immae.eu Git - perso/Immae/Config/Nix.git/blobdiff - nixops/Makefile
Add monitoring host
[perso/Immae/Config/Nix.git] / nixops / Makefile
index 5e654ee23d8542358fa14142ec041fd82d9216a7..02d34f80094c7a4efdb1be52eaec50b596b99193 100644 (file)
@@ -36,6 +36,9 @@ ssh-eldiron:
 ssh-backup-2:
        $(NIXOPS_PRIV) ssh backup-2 -- $(SSH_ARGS)
 
+ssh-monitoring-1:
+       $(NIXOPS_PRIV) ssh monitoring-1 -- $(SSH_ARGS)
+
 info:
        $(NIXOPS_PRIV) list
        $(NIXOPS_PRIV) info
@@ -74,11 +77,15 @@ list-generations:
 delete-generations:
        nix-env -p $(profile) --delete-generations $(GEN)
        $(NIXOPS_PRIV) ssh eldiron -- nix-env -p /nix/var/nix/profiles/system --delete-generations $(GEN)
+       $(NIXOPS_PRIV) ssh backup-2 -- nix-env -p /nix/var/nix/profiles/system --delete-generations $(GEN)
+       $(NIXOPS_PRIV) ssh monitoring-1 -- nix-env -p /nix/var/nix/profiles/system --delete-generations $(GEN)
 .PHONY: delete-generations
 
 cleanup: delete-generations
        nix-store --gc
        $(NIXOPS_PRIV) ssh eldiron -- nix-store --gc
+       $(NIXOPS_PRIV) ssh backup-2 -- nix-store --gc
+       $(NIXOPS_PRIV) ssh monitoring-1 -- nix-store --gc
 .PHONY: cleanup
 
 ###### Pull environment and deployment from remote