8 --show-trace $(NIX_BUILD)
17 vmdk: var/virtualbox/nixops.vmdk
18 .PHONY: var/virtualbox/nixops.vmdk
20 var/virtualbox/nixops.vmdk:
21 # NOTE: user's TMPDIR may be too small
24 --out-link var/virtualbox \
25 --argstr system x86_64-linux \
26 -f "<nixsys/build/pkgs/installer/nixops-virtualbox>"
31 create: $(dir $(NIXOPS_STATE))
32 $(if $(filter $(NIXOPS_DEPLOYMENT),$(deployment)),,\
37 modify: $(NIXOPS_STATE)
43 $(dir $(NIXOPS_STATE)):
46 deployment = $(shell \
47 test ! -f $(NIXOPS_STATE) || \
48 sqlite3 $(NIXOPS_STATE) \
49 "select value from DeploymentAttrs \
50 where name='name' and value='$(NIXOPS_DEPLOYMENT)';")
56 time nixops deploy $(NIXOPS_OPTS) $(NIXOPS_DEPLOY)
58 #time disnixos-env --use-nixops \
59 # -s install/disnix/services.nix \
60 # -d install/disnix/distribution.nix \
61 # -n install/logical.nix \
62 # -n install/physical.nix
63 %/offline: NIXOPS_DEPLOY+=--option substituters ""
73 state: $(NIXOPS_STATE)
74 sqlite3 $(NIXOPS_STATE) .dump