From 41648800ab5669467e32f2a41c884107b9907c51 Mon Sep 17 00:00:00 2001 From: Chandler Swift Date: Tue, 12 Nov 2024 23:56:35 -0600 Subject: [PATCH] bigbird: Make Makefile consistent with other machines' --- bigbird/Makefile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/bigbird/Makefile b/bigbird/Makefile index 93d66e6..7b9f27b 100644 --- a/bigbird/Makefile +++ b/bigbird/Makefile @@ -1,20 +1,20 @@ # https://stackoverflow.com/a/23324703 current_dir:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST)))) -.PHONY: remote-deploy -remote-deploy: +.PHONY: deploy +deploy: rsync -av $(current_dir)/ root@bigbird:config/ ssh root@bigbird nixos-rebuild switch --fast -I nixos-config=/root/config/configuration.nix ## This probably doesn't work, since architectures are different? -# .PHONY: deploy -# deploy: +# .PHONY: local-build-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 -.PHONY: remote-deploy-upgrade -remote-deploy-upgrade: - rsync -avz $(current_dir)/ root@animal.chandlerswift.com:config/ - ssh root@animal.chandlerswift.com nixos-rebuild switch --upgrade-all --fast -I nixos-config=/root/config/configuration.nix +.PHONY: deploy-upgrade +deploy-upgrade: + rsync -avz $(current_dir)/ root@bigbird:config/ + ssh root@bigbird nixos-rebuild switch --upgrade-all --fast -I nixos-config=/root/config/configuration.nix # TODO: build an SD card? #sd-image: