From 17bc071edfac4a0be9037f0b7a7fc284938198e2 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Tue, 20 Feb 2024 16:30:30 -0500 Subject: [PATCH] just: enrich that one target --- justfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/justfile b/justfile index 8f0288fe..a230b4c2 100644 --- a/justfile +++ b/justfile @@ -1,5 +1,9 @@ default: @just --list -here: - nixos-rebuild switch --fast --flake .#here --target-host $USER@here --build-host $USER@here --use-remote-sudo \ No newline at end of file +# Remote deploy to a host +remote host='here': + nixos-rebuild switch --fast --use-remote-sudo \ + --flake .#{{host}} \ + --target-host $USER@{{host}} \ + --build-host $USER@{{host}}