diff options
Diffstat (limited to 'nixops/Makefile')
-rw-r--r-- | nixops/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nixops/Makefile b/nixops/Makefile index 5e654ee..02d34f8 100644 --- a/nixops/Makefile +++ b/nixops/Makefile | |||
@@ -36,6 +36,9 @@ ssh-eldiron: | |||
36 | ssh-backup-2: | 36 | ssh-backup-2: |
37 | $(NIXOPS_PRIV) ssh backup-2 -- $(SSH_ARGS) | 37 | $(NIXOPS_PRIV) ssh backup-2 -- $(SSH_ARGS) |
38 | 38 | ||
39 | ssh-monitoring-1: | ||
40 | $(NIXOPS_PRIV) ssh monitoring-1 -- $(SSH_ARGS) | ||
41 | |||
39 | info: | 42 | info: |
40 | $(NIXOPS_PRIV) list | 43 | $(NIXOPS_PRIV) list |
41 | $(NIXOPS_PRIV) info | 44 | $(NIXOPS_PRIV) info |
@@ -74,11 +77,15 @@ list-generations: | |||
74 | delete-generations: | 77 | delete-generations: |
75 | nix-env -p $(profile) --delete-generations $(GEN) | 78 | nix-env -p $(profile) --delete-generations $(GEN) |
76 | $(NIXOPS_PRIV) ssh eldiron -- nix-env -p /nix/var/nix/profiles/system --delete-generations $(GEN) | 79 | $(NIXOPS_PRIV) ssh eldiron -- nix-env -p /nix/var/nix/profiles/system --delete-generations $(GEN) |
80 | $(NIXOPS_PRIV) ssh backup-2 -- nix-env -p /nix/var/nix/profiles/system --delete-generations $(GEN) | ||
81 | $(NIXOPS_PRIV) ssh monitoring-1 -- nix-env -p /nix/var/nix/profiles/system --delete-generations $(GEN) | ||
77 | .PHONY: delete-generations | 82 | .PHONY: delete-generations |
78 | 83 | ||
79 | cleanup: delete-generations | 84 | cleanup: delete-generations |
80 | nix-store --gc | 85 | nix-store --gc |
81 | $(NIXOPS_PRIV) ssh eldiron -- nix-store --gc | 86 | $(NIXOPS_PRIV) ssh eldiron -- nix-store --gc |
87 | $(NIXOPS_PRIV) ssh backup-2 -- nix-store --gc | ||
88 | $(NIXOPS_PRIV) ssh monitoring-1 -- nix-store --gc | ||
82 | .PHONY: cleanup | 89 | .PHONY: cleanup |
83 | 90 | ||
84 | ###### Pull environment and deployment from remote | 91 | ###### Pull environment and deployment from remote |