summaryrefslogtreecommitdiff
path: root/hostnix/elmo/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'hostnix/elmo/Makefile')
-rw-r--r--hostnix/elmo/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/hostnix/elmo/Makefile b/hostnix/elmo/Makefile
new file mode 100644
index 0000000..825a23e
--- /dev/null
+++ b/hostnix/elmo/Makefile
@@ -0,0 +1,12 @@
+push:
+ rsync -r --rsync-path='sudo rsync' --exclude Makefile . elmo:/etc/nixos/
+
+switch: push
+ ssh elmo sudo nixos-rebuild switch
+
+update:
+ nix flake update
+
+upgrade: update switch
+
+.PHONY: push switch update upgrade