Add copy command to Makefile
copy runs build, copy to Legion, then rm result link
This commit is contained in:
parent
010f0f6fc3
commit
ff92181337
6
Makefile
6
Makefile
|
@ -1,4 +1,4 @@
|
||||||
.PHONY: default build test switch boot
|
.PHONY: default build test switch boot copy
|
||||||
|
|
||||||
default: build
|
default: build
|
||||||
|
|
||||||
|
@ -13,3 +13,7 @@ switch:
|
||||||
|
|
||||||
boot:
|
boot:
|
||||||
sudo nixos-rebuild boot --flake . --show-trace
|
sudo nixos-rebuild boot --flake . --show-trace
|
||||||
|
|
||||||
|
copy: build
|
||||||
|
nix copy --to ssh://legion ./result
|
||||||
|
rm ./result
|
||||||
|
|
Loading…
Reference in a new issue