about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorEmile <git@emile.space>2025-01-28 00:38:09 +0100
committerEmile <git@emile.space>2025-01-28 00:38:09 +0100
commit1556d9ed0efed4941e4bfa02a488f4fb8b1b9fa1 (patch)
treed32d6191ee02e0de449f075df493828091031b50 /Makefile
parent3710d4cb0efa652d8f50f3c8a85fd2b7ed8812c5 (diff)
Makefile: parameters
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 45924d9..a9d041e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,3 @@
-HOSTNAME=corrino
-
 .PHONY: help
 
 help:
@@ -13,7 +11,7 @@ corrino:
 	deploy .#corrino --skip-checks -- --show-trace -L
 
 build:
-	nix run nixpkgs#nix-output-monitor build .#nixosConfigurations.corrino.config.system.build.toplevel
+	nix run nixpkgs#nix-output-monitor build ".#nixosConfigurations.${HOSTNAME}.config.system.build.toplevel"
 
 update:
 	nix flake update --commit-lock-file
@@ -27,9 +25,9 @@ build-corrino:
 deploy: build
 	nix run -- nixpkgs#nixos-rebuild switch \
 		--fast \
-		--build-host root@${HOSTNAME} \
+		--build-host root@${BUILDHOST} \
 		--target-host root@${HOSTNAME} \
-		--flake ".#corrino"
+		--flake ".#${HOSTNAME}"
 
 check:
 	nix flake check