###
.PHONY: build
build:
- nix build -f build \
+ nix $(NIX) build -f build \
--out-link result \
--show-trace $(NIX_BUILD)
tree result/
var/virtualbox/nixops.vmdk:
# NOTE: user's TMPDIR may be too small
TMPDIR=/tmp \
- time nix build \
+ time nix $(NIX) build \
--out-link var/virtualbox \
--argstr system x86_64-linux \
-f "<nixsys/build/pkgs/installer/nixops-virtualbox>"
# -d install/disnix/distribution.nix \
# -n install/logical.nix \
# -n install/physical.nix
+%/offline: NIX_BUILD+=--option substituters ""
%/offline: NIXOPS_DEPLOY+=--option substituters ""
%/offline: %
+%/verbose: NIX+=-v -v -v
+%/verbose: %
+
stop:
nixops stop
state: $(NIXOPS_STATE)
sqlite3 $(NIXOPS_STATE) .dump
+privateIpv4:
+ sqlite3 $(NIXOPS_STATE) \
+ 'update ResourceAttrs set value = "$(IPv4)" where name="privateIpv4"'