summaryrefslogtreecommitdiff
path: root/Makefile
blob: 7b938e8399d31ec7ce714d09cf3fb612adbf9bf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
HOST = root@simatime.com
OUT  = $(shell readlink -n ./result)

result:
	nix-build --attr system ./nixos.nix

copy: result
	nix copy --to "ssh://$(USER)@$(HOST)" ./result

switch:
	ssh $(USER)@$(HOST) sudo "$(OUT)/bin/switch-to-configuration" switch

clean: FORCE
	rm -f ./result

.PHONY: FORCE