working install anywhere
This commit is contained in:
1 parent
a5cf4fcd00
commit
a80df5aec2
2 files changed
+7
-1
No files matched your search
+4
-1
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user