Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
1 files changed, 5 insertions, 0 deletions
-rw-r--r--Justfile5
diff --git a/Justfile b/Justfile
index 098efec..236b76a 100644
--- a/Justfile
+++ b/Justfile
@@ -4,6 +4,11 @@ HOSTNAME := env_var_or_default("HOSTNAME", "")
switch:
sudo nixos-rebuild switch
+# Build system and switch a remote to it
+[no-cd]
+deploy remote_host hostname:
+ NIX_SSHOPTS="-p 2200" nixos-rebuild --target-host {{remote_host}} switch --flake .#{{hostname}}
+
# Build a NixOS configuration
[no-cd]
build hostname=HOSTNAME: