bigbird: Make Makefile consistent with other machines'
This commit is contained in:
parent
b508306c66
commit
41648800ab
|
@ -1,20 +1,20 @@
|
||||||
# https://stackoverflow.com/a/23324703
|
# https://stackoverflow.com/a/23324703
|
||||||
current_dir:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
|
current_dir:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
|
||||||
|
|
||||||
.PHONY: remote-deploy
|
.PHONY: deploy
|
||||||
remote-deploy:
|
deploy:
|
||||||
rsync -av $(current_dir)/ root@bigbird:config/
|
rsync -av $(current_dir)/ root@bigbird:config/
|
||||||
ssh root@bigbird nixos-rebuild switch --fast -I nixos-config=/root/config/configuration.nix
|
ssh root@bigbird nixos-rebuild switch --fast -I nixos-config=/root/config/configuration.nix
|
||||||
|
|
||||||
## This probably doesn't work, since architectures are different?
|
## This probably doesn't work, since architectures are different?
|
||||||
# .PHONY: deploy
|
# .PHONY: local-build-deploy
|
||||||
# deploy:
|
# local-build-deploy:
|
||||||
# nixos-rebuild switch --fast -I nixos-config=./configuration.nix --build-host root@animal.chandlerswift.com --target-host root@animal.chandlerswift.com
|
# nixos-rebuild switch --fast -I nixos-config=./configuration.nix --build-host root@animal.chandlerswift.com --target-host root@animal.chandlerswift.com
|
||||||
|
|
||||||
.PHONY: remote-deploy-upgrade
|
.PHONY: deploy-upgrade
|
||||||
remote-deploy-upgrade:
|
deploy-upgrade:
|
||||||
rsync -avz $(current_dir)/ root@animal.chandlerswift.com:config/
|
rsync -avz $(current_dir)/ root@bigbird:config/
|
||||||
ssh root@animal.chandlerswift.com nixos-rebuild switch --upgrade-all --fast -I nixos-config=/root/config/configuration.nix
|
ssh root@bigbird nixos-rebuild switch --upgrade-all --fast -I nixos-config=/root/config/configuration.nix
|
||||||
|
|
||||||
# TODO: build an SD card?
|
# TODO: build an SD card?
|
||||||
#sd-image:
|
#sd-image:
|
||||||
|
|
Loading…
Reference in a new issue