From 1556d9ed0efed4941e4bfa02a488f4fb8b1b9fa1 Mon Sep 17 00:00:00 2001 From: Emile Date: Tue, 28 Jan 2025 00:38:09 +0100 Subject: Makefile: parameters --- Makefile | 8 +++----- 1 file 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 -- cgit 1.4.1