From 07c83165fe8beb3adc5a7885550ae8bc0ba4d9b8 Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Sun, 1 Feb 2026 12:37:31 +0100 Subject: [PATCH] feat: update justfile. --- justfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/justfile b/justfile index 8d4b149..c8ff129 100644 --- a/justfile +++ b/justfile @@ -1,30 +1,50 @@ +# Ssh into the server +[group('ssh')] shell server: ssh crony@{{server}} +# Forward a port from server to localhost +[group('ssh')] forward port server: ssh -N -L {{port}}:127.0.0.1:{{port}} root@{{server}} +# Deploy server nixos installation +[group('deploy')] deploy server: deploy ".#{{server}}" --magic-rollback=false -s +# Forcefully deploy without rollback +[group('deploy')] deploy-force server: deploy ".#{{server}}" --magic-rollback=false --auto-rollback=false -s +# Deploy all servers available +[group('deploy')] deploy-all: deploy "." --magic-rollback=false -s +# Reboot the server +[group('ssh')] reboot server: ssh -t root@{{server}} "reboot" +# Update current nixos install +[group('nixos')] update: nh os test -u -a && nh os switch +# Test current config +[group('nixos')] test: nh os test -a +# Switch to current config +[group('nixos')] switch: nh os switch -a +# Commit flake.lock update or modifications +[group('git')] commit-lock: git add flake.lock git commit -m "feat: update flake.lock"