Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commited3de308a02b3f9bc8f732d74882772b6446c3a6 (patch)
Author
 Syndamia <kamen@syndamia.com>
2025-07-01 18:28:58 +0300
Committer
 Syndamia <kamen@syndamia.com>
2025-07-01 18:32:56 +0300
Files308fb30cda97c36649661eec714b1a8fd66d2e07
nix-ed3de308a02b3f9bc8f732d74882772b6446c3a6.tar
nix-ed3de308a02b3f9bc8f732d74882772b6446c3a6.tar.gz
nix-ed3de308a02b3f9bc8f732d74882772b6446c3a6.zip
Parent5f5f3cc1377ac45ad5193e77fbe465f96603a0a4 (diff)
feat(Justfile): Add deployment recipie
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: