diff options
| author | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-03-19 12:09:12 -0500 |
|---|---|---|
| committer | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-03-20 09:43:31 -0500 |
| commit | 80571337a8a21822449d1ca222677b3a6242ece4 (patch) | |
| tree | 1017e0f601280340f7bc7ec854dfb27bb25ae094 /pkgs | |
| parent | 57115992c740e72fe4767f1b9b5e5d2921e884ef (diff) | |
just deploy as root (we're using safe ssh keys anyway)
Diffstat (limited to 'pkgs')
| -rw-r--r-- | pkgs/yo/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/yo/default.nix b/pkgs/yo/default.nix index 30a90f0..1423fdb 100644 --- a/pkgs/yo/default.nix +++ b/pkgs/yo/default.nix @@ -6,8 +6,8 @@ case ARGV[0] when "deploy", "dep" - hostname = ARGV[1] or abort "must specify hostname to build" - ssh_host = ARGV[2] or abort "must specify ssh host to target" + ssh_host = ARGV[1] or abort "must specify ssh target (host or user@host)" + hostname = ssh_host.include?("@") ? ssh_host.split("@", 2).last : ssh_host store_path = Nix.build_configuration( flake_path: FLAKE_PATH, |
