nixos/Makefile
Evie Litherland-Smith ff92181337 Add copy command to Makefile
copy runs build, copy to Legion, then rm result link
2024-06-03 05:38:03 +01:00

20 lines
344 B
Makefile

.PHONY: default build test switch boot copy
default: build
build:
nixos-rebuild build --flake . --show-trace
test:
sudo nixos-rebuild test --flake . --show-trace
switch:
sudo nixos-rebuild switch --flake . --show-trace
boot:
sudo nixos-rebuild boot --flake . --show-trace
copy: build
nix copy --to ssh://legion ./result
rm ./result