From a80df5aec2a8532f61d7893fd153529b73a932d7 Mon Sep 17 00:00:00 2001 From: Ari Sosnovsky Date: Wed, 9 Sep 2026 16:13:10 -0400 Subject: [PATCH] working install anywhere --- bin/lib/cmds.nu | 5 ++++- hosts/iso.nix | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/bin/lib/cmds.nu b/bin/lib/cmds.nu index 5fd31f7..c9dad54 100644 --- a/bin/lib/cmds.nu +++ b/bin/lib/cmds.nu @@ -137,7 +137,10 @@ export def "skyg remote install" [ $"Installing [(ansi green_bold)($profile)(ansi reset)] on ($target_host) via nixos-anywhere, using ($disko_file)" | print let runcmd = $"nix run github:nix-community/nixos-anywhere -- --flake .#($profile) ($target_host)" $runcmd | print - bash -c $runcmd + let bash_path = (which bash | get 0.path) + with-env { SHELL: $bash_path } { + bash -c $runcmd + } } # Boot all remote hosts except the current machine (fwbook) diff --git a/hosts/iso.nix b/hosts/iso.nix index 4b51f53..ea6ebb2 100644 --- a/hosts/iso.nix +++ b/hosts/iso.nix @@ -3,6 +3,9 @@ # Root access without password users.users.root.initialHashedPassword = ""; security.sudo.wheelNeedsPassword = false; + # Remote-install tools (nix ssh-store, nixos-anywhere) run non-interactive commands over SSH + # that zsh's glob-nomatch abort breaks; keep root on bash for this image only. + users.users.root.shell = lib.mkForce pkgs.bash; # Networking networking.networkmanager.enable = true;