summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e1889fc1..7126332d 100644
--- a/Makefile
+++ b/Makefile
@@ -73,3 +73,10 @@ install:
$(ssh) $(target_user)@$(target_host) -p $(target_port) \
env NIXOS_CONFIG=$(target_path)/nixos-config \
nixos-install
+
+# usage: make test system=foo [target=bar]
+test:
+ $(call execute,populate)
+ ssh $(target_user)@$(target_host) -p $(target_port) \
+ nix-build --no-out-link --show-trace -I $(target_path) \
+ -A config.system.build.toplevel $(target_path)/stockholm