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;