From 80571337a8a21822449d1ca222677b3a6242ece4 Mon Sep 17 00:00:00 2001 From: Collin Williams <96917990+bluedragon1221@users.noreply.github.com> Date: Thu, 19 Mar 2026 12:09:12 -0500 Subject: just deploy as root (we're using safe ssh keys anyway) --- pkgs/yo/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkgs') 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, -- cgit v1.3.1