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='':