summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2016-03-10 12:41:24 +0100
committertv <tv@krebsco.de>2016-03-10 12:41:24 +0100
commit17be0772c5cfcb57f99299ad541b76dfabf8a62d (patch)
tree318ce8bf141c0bd9d18fcf7fe93ccfdd654d869e
parente58921e546e68366f2b294a01ab1afa262ab8b95 (diff)
Makefile: define nixos-config using ?=
-rw-r--r--Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index bd4544000..7252ca70e 100644
--- a/Makefile
+++ b/Makefile
@@ -9,10 +9,9 @@ export STOCKHOLM_VERSION ?= $(shell \
printf '%s' "$$date.$$version"; \
)
-ifndef nixos-config
$(if $(system),,$(error unbound variable: system))
-nixos-config = ./$(LOGNAME)/1systems/$(system).nix
-endif
+
+nixos-config ?= $(stockholm)/$(LOGNAME)/1systems/$(system).nix
# target = [target_user@]target_host[:target_port][/target_path]
ifdef target