aboutsummaryrefslogtreecommitdiff
path: root/nixops/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'nixops/Makefile')
-rw-r--r--nixops/Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/nixops/Makefile b/nixops/Makefile
index f3d06ef..fb9da4c 100644
--- a/nixops/Makefile
+++ b/nixops/Makefile
@@ -26,7 +26,14 @@ endif
26SSH_ARGS ?= 26SSH_ARGS ?=
27 27
28edit_env: 28edit_env:
29 pass edit Nixops/files/environment.nix || true 29 $(EDITOR) secrets/environment.nix || true
30 git -C secrets add environment.nix || true
31 git -C secrets commit -m "Edit environment.nix" environment.nix || true
32
33edit_vars:
34 sops secrets/vars.yml || true
35 git -C secrets add vars.yml || true
36 git -C secrets commit -m "Edit password for vars.yml using sops." vars.yml || true
30 37
31ssh-eldiron: 38ssh-eldiron:
32 ./scripts/with_env bash -c 'ssh -i $$SSH_IDENTITY_FILE root@eldiron $(SSH_ARGS)' 39 ./scripts/with_env bash -c 'ssh -i $$SSH_IDENTITY_FILE root@eldiron $(SSH_ARGS)'
@@ -77,8 +84,8 @@ list-generations:
77.PHONY: list-generations 84.PHONY: list-generations
78 85
79delete-generations: 86delete-generations:
80 echo "make sure you ran a complete build before cleaning up!" 87 @echo "making sure that a complete build is done before cleaning up"
81 false 88 $(MAKE) build MORPH_ARGS=--keep-result
82 nix-env -p $(PROFILE) --delete-generations $(GEN) 89 nix-env -p $(PROFILE) --delete-generations $(GEN)
83 $(MAKE) ssh-eldiron SSH_ARGS="nix-env -p /nix/var/nix/profiles/system --delete-generations $(GEN)" 90 $(MAKE) ssh-eldiron SSH_ARGS="nix-env -p /nix/var/nix/profiles/system --delete-generations $(GEN)"
84 $(MAKE) ssh-dilion SSH_ARGS="nix-env -p /nix/var/nix/profiles/system --delete-generations $(GEN)" 91 $(MAKE) ssh-dilion SSH_ARGS="nix-env -p /nix/var/nix/profiles/system --delete-generations $(GEN)"