]> git.immae.eu Git - perso/Immae/Config/Nix.git/blame_incremental - nixops/Makefile
Move Apache theme to pkgs
[perso/Immae/Config/Nix.git] / nixops / Makefile
... / ...
CommitLineData
1setup:
2 ./scripts/setup
3
4ssh-eldiron:
5 ./scripts/nixops_wrap ssh eldiron
6
7info:
8 ./scripts/nixops_wrap list
9 ./scripts/nixops_wrap info
10
11debug:
12 ./scripts/nixops_wrap deploy --build-only --show-trace
13
14dry-run:
15 ./scripts/nixops_wrap deploy --dry-run
16
17build:
18 ./scripts/nixops_wrap deploy --build-only
19
20upload:
21 ./scripts/nixops_wrap deploy --copy-only
22
23deploy:
24 ./scripts/nixops_wrap deploy
25
26reboot:
27 ./scripts/nixops_wrap reboot --include=eldiron
28
29push:
30 ./scripts/push_deployment
31 ./scripts/push_environment
32
33pull:
34 ./scripts/pull_environment
35
36pull-deployment:
37 ./scripts/pull_deployment
38
39profile = $(shell ./scripts/nixops_wrap info | grep "^Nix profile: " | sed -e "s/^Nix profile: //")
40GEN ?= "+3"
41
42list-generations:
43 nix-env -p $(profile) --list-generations
44 ./scripts/nixops_wrap ssh eldiron -- nix-env -p /nix/var/nix/profiles/system --list-generations
45
46delete-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)
49
50cleanup: delete-generations
51 nix-store --gc
52 ./scripts/nixops_wrap ssh eldiron -- nix-store --gc
53
54.PHONY: setup ssh-eldiron info debug dry-run build upload deploy push pull pull-deployment list-generations delete-generations cleanup