Update Makefile

Use normal nix build command to build output, instead of relying on
nixos-rebuild script that introduces some overhead
This commit is contained in:
Evie Litherland-Smith 2024-06-22 09:41:24 +01:00
parent 256a07de4b
commit dfebded93d
2 changed files with 4 additions and 1 deletions

1
.gitignore vendored
View file

@ -7,3 +7,4 @@
__pycache__ __pycache__
.direnv .direnv
*.html *.html
/result

View file

@ -1,7 +1,9 @@
.PHONY: build copy .PHONY: build copy
HOST := $(shell hostname)
build: build:
nixos-rebuild build --flake . --show-trace nix build .#nixosConfigurations.$(HOST).config.system.build.toplevel
copy: build copy: build
nix copy --to ssh://pixelifytica@legion ./result nix copy --to ssh://pixelifytica@legion ./result