From aa495aa582f352619b3039c4c2345eb0d959bb3c Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Sat, 22 Jun 2024 09:40:51 +0100 Subject: [PATCH] Update Makefile Use normal nix build command to build output, instead of relying on home-manager script that introduces some overhead --- .gitignore | 1 + Makefile | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 9eb700d..852edd4 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ __pycache__ .direnv *.html +/result diff --git a/Makefile b/Makefile index e48ec40..2072f34 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,10 @@ .PHONY: build copy +USER := $(shell whoami) +HOST := $(shell hostname) + build: - nix run . -- build --flake . --show-trace + nix build .#homeConfigurations."$(USER)@$(HOST)".activationPackage copy: build nix copy --to ssh://pixelifytica@legion ./result