Add update and upgrade targets to Makefile
This commit is contained in:
4
Makefile
4
Makefile
@@ -3,5 +3,9 @@ DIR=$(HOME)/Projects/zion
|
|||||||
switch:
|
switch:
|
||||||
nixos-rebuild switch --no-reexec --target-host root@zion \
|
nixos-rebuild switch --no-reexec --target-host root@zion \
|
||||||
--build-host root@zion --flake path://$(DIR)#zion
|
--build-host root@zion --flake path://$(DIR)#zion
|
||||||
|
update:
|
||||||
|
nix flake update --commit-lock-file
|
||||||
|
upgrade:
|
||||||
|
make update && make switch
|
||||||
|
|
||||||
.DEFAULT_GOAL := switch
|
.DEFAULT_GOAL := switch
|
||||||
|
|||||||
Reference in New Issue
Block a user