network.description: fix title.
[sourcephile-nix.git] / Makefile
index 1f39dbc824f09341ee9fb4ffb7b66c8b72d1ccbc..3e16eaab1d9b7c12eceaa59f68b683c6a7b77cb7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@
 ###
 .PHONY: build
 build:
-       nix build -f build \
+       nix $(NIX) build -f build \
         --out-link result \
         --show-trace $(NIX_BUILD)
        tree result/
@@ -20,7 +20,7 @@ vmdk: var/virtualbox/nixops.vmdk
 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>"
@@ -60,9 +60,13 @@ deploy: create
        # -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
@@ -73,3 +77,6 @@ stop:
 state: $(NIXOPS_STATE)
        sqlite3 $(NIXOPS_STATE) .dump
 
+privateIpv4:
+       sqlite3 $(NIXOPS_STATE) \
+        'update ResourceAttrs set value = "$(IPv4)" where name="privateIpv4"'