Start setting up bert
This commit is contained in:
parent
52e33b951c
commit
40bb9b51f6
8 changed files with 226 additions and 0 deletions
16
bert/Makefile
Normal file
16
bert/Makefile
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
# https://stackoverflow.com/a/23324703
|
||||
current_dir:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
|
||||
|
||||
.PHONY: deploy
|
||||
deploy:
|
||||
rsync -avz $(current_dir)/ root@bert:config/
|
||||
ssh root@bert nixos-rebuild switch --fast -I nixos-config=/root/config/configuration.nix
|
||||
|
||||
.PHONY: local-build-deploy
|
||||
local-build-deploy:
|
||||
nixos-rebuild switch --fast -I nixos-config=./configuration.nix --build-host root@bert --target-host root@bert
|
||||
|
||||
.PHONY: deploy-upgrade
|
||||
deploy-upgrade:
|
||||
rsync -avz $(current_dir)/ root@bert:config/
|
||||
ssh root@bert nixos-rebuild switch --upgrade-all --fast -I nixos-config=/root/config/configuration.nix
|
||||
Loading…
Add table
Add a link
Reference in a new issue