From dfebded93d265917b4979c57b055d68c247d999d Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Sat, 22 Jun 2024 09:41:24 +0100 Subject: [PATCH] Update Makefile Use normal nix build command to build output, instead of relying on nixos-rebuild script that introduces some overhead --- .gitignore | 1 + Makefile | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 9eb700d7..852edd49 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ __pycache__ .direnv *.html +/result diff --git a/Makefile b/Makefile index dbd8ea56..aca3e3c7 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,9 @@ .PHONY: build copy +HOST := $(shell hostname) + build: - nixos-rebuild build --flake . --show-trace + nix build .#nixosConfigurations.$(HOST).config.system.build.toplevel copy: build nix copy --to ssh://pixelifytica@legion ./result