6 nix $(NIX) build -f build \
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
23 time nix $(NIX) build \
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: NIX_BUILD+=--option substituters ""
64 %/offline: NIXOPS_DEPLOY+=--option substituters ""
67 %/verbose: NIX+=-v -v -v
77 state: $(NIXOPS_STATE)
78 sqlite3 $(NIXOPS_STATE) .dump
81 sqlite3 $(NIXOPS_STATE) \
82 'update ResourceAttrs set value = "$(IPv4)" where name="privateIpv4"'