commit 7c77cb86a2b4942d02f345c77bad35ccb913b691
parent e5005819742f1a723140a8c8ab334bbde3d83c07
Author: Vincent Demeester <vincent@sbr.pm>
Date: Tue, 30 Aug 2022 07:23:09 +0200
Makefile: use vincent@shikoku.home as build-host
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
1 file changed, 3 insertions(+), 21 deletions(-)
diff --git a/Makefile b/Makefile
@@ -1,7 +1,7 @@
# Makefile for home
HOSTS = $(shell nix flake show --json | yq '.nixosConfigurations.[] | key')
HOSTS_BUILD = $(addprefix host/, $(addsuffix /build,$(HOSTS)))
-BUILDER_HOST = root@shikoku.home
+BUILDER_HOST = vincent@shikoku.home
hosts: ${HOSTS_BUILD}
echo ${HOSTS_BUILD} ${HOSTS}
@@ -9,11 +9,9 @@ hosts: ${HOSTS_BUILD}
host/%/build: FORCE
nix build .#nixosConfigurations.$*.config.system.build.toplevel --no-link
host/%/boot: FORCE
- nixos-rebuild --target-host root@$*.home --flake .#$* boot
- # nixos-rebuild --build-host ${BUILDER_HOST} --target-host root@$*.home --flake .#$* boot
+ nixos-rebuild --build-host ${BUILDER_HOST} --target-host root@$*.home --flake .#$* boot
host/%/switch: FORCE
- nixos-rebuild --target-host root@$*.home --flake .#$* switch
- # nixos-rebuild --build-host ${BUILDER_HOST} --target-host root@$*.home --flake .#$* switch
+ nixos-rebuild --build-host ${BUILDER_HOST} --target-host root@$*.home --flake .#$* switch
boot:
sudo nixos-rebuild --flake .# boot
@@ -45,22 +43,6 @@ all: switch
update:
nix-channel --update
-# .PHONY: build
-# build:
-# ./bin/system build
-#
-# .PHONY: nixos-dry-build
-# dry-build: setup
-# ./bin/system dry-build
-#
-# .PHONY: switch
-# switch:
-# ./bin/system switch
-#
-# .PHONY: boot
-# boot:
-# ./bin/system boot
-
.PHONY: install-hooks
install-hooks:
if [ -e .git ]; then nix-shell -p git --run 'git config core.hooksPath .githooks'; fi