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:
parent
256a07de4b
commit
dfebded93d
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -7,3 +7,4 @@
|
||||||
__pycache__
|
__pycache__
|
||||||
.direnv
|
.direnv
|
||||||
*.html
|
*.html
|
||||||
|
/result
|
||||||
|
|
4
Makefile
4
Makefile
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue