Specify build host and directory in the makefile

This commit is contained in:
coolneng 2023-02-14 20:59:28 +01:00
parent 63b442c6c9
commit 2263671c67
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,7 @@
DIR=$(HOME)/Projects/zion
switch:
nixos-rebuild switch --fast --target-host root@zion --flake path://$(PWD)#zion
nixos-rebuild switch --fast --target-host root@zion \
--build-host root@zion --flake path://$(DIR)#zion
.DEFAULT_GOAL := switch