From 45dbc904149cdcc26d8a51cd0afd2a9db48d6ef5 Mon Sep 17 00:00:00 2001 From: noe Date: Fri, 22 Dec 2023 20:13:54 -0500 Subject: [PATCH] jsut deploy with flags --- Justfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Justfile b/Justfile index 43c78a6..1483ba5 100644 --- a/Justfile +++ b/Justfile @@ -66,9 +66,9 @@ sops-generate-keys: sudo cat /etc/ssh/ssh_host_ed25519_key | ssh-to-age --private-key > .sops.keys cat ~/.ssh/id_ed25519 | ssh-to-age --private-key >> .sops.keys -deploy target_host: +deploy target_host extra_flags="": @test -f nixos/hosts/{{target_host}}/.target || { echo "Host cannot be deployed, add a .target file with SSH destination"; exit 1; } - ssh -A `cat nixos/hosts/{{target_host}}/.target` sudo nixos-rebuild switch --flake \"git+https://codeberg.org/noe/nixos.git?ref={{branch}}\&rev={{commit}}#{{target_host}}\" + ssh -A `cat nixos/hosts/{{target_host}}/.target` sudo nixos-rebuild switch {{extra_flags}} --flake \"git+https://codeberg.org/noe/nixos.git?ref={{branch}}\&rev={{commit}}#{{target_host}}\" # ssh target_host *args='':