5 ./scripts/nixops_wrap ssh eldiron
8 ./scripts/nixops_wrap list
9 ./scripts/nixops_wrap info
12 ./scripts/nixops_wrap deploy --build-only --show-trace
15 ./scripts/nixops_wrap deploy --dry-run
18 ./scripts/nixops_wrap deploy --build-only
21 ./scripts/nixops_wrap deploy --copy-only
24 ./scripts/nixops_wrap deploy
27 ./scripts/nixops_wrap reboot --include=eldiron
30 ./scripts/push_deployment
31 ./scripts/push_environment
34 ./scripts/pull_environment
37 ./scripts/pull_deployment
39 profile = $(shell ./scripts/nixops_wrap info | grep "^Nix profile: " | sed -e "s/^Nix profile: //")
43 nix-env -p $(profile) --list-generations
44 ./scripts/nixops_wrap ssh eldiron -- nix-env -p /nix/var/nix/profiles/system --list-generations
47 nix-env -p $(profile) --delete-generations $(GEN)
48 ./scripts/nixops_wrap ssh eldiron -- nix-env -p /nix/var/nix/profiles/system --delete-generations $(GEN)
50 cleanup: delete-generations
52 ./scripts/nixops_wrap ssh eldiron -- nix-store --gc
54 .PHONY: setup ssh-eldiron info debug dry-run build upload deploy push pull pull-deployment list-generations delete-generations cleanup