feat: add remote deployment mode (remote-deploy.nix, headless installer, ISO SSH/mDNS)
Agent-Logs-Url: https://github.com/naturallaw777/staging_alpha/sessions/8e2ed0be-2db9-4437-81d7-c6efec45d6db Co-authored-by: naturallaw777 <99053422+naturallaw777@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
357624193b
commit
6fc66ba13f
@@ -62,8 +62,28 @@ in
|
||||
nixos-install-tools
|
||||
git
|
||||
curl
|
||||
openssh
|
||||
];
|
||||
|
||||
# Remote install support — SSH on the live ISO
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
listenAddresses = [{ addr = "0.0.0.0"; port = 22; }];
|
||||
settings = {
|
||||
PasswordAuthentication = true;
|
||||
PermitRootLogin = "yes";
|
||||
};
|
||||
};
|
||||
users.users.root.initialPassword = "sovran-remote";
|
||||
|
||||
# mDNS so the machine is discoverable as sovran-installer.local
|
||||
services.avahi = {
|
||||
enable = true;
|
||||
hostName = "sovran-installer";
|
||||
nssmdns4 = true;
|
||||
publish = { enable = true; addresses = true; };
|
||||
};
|
||||
|
||||
environment.etc."sovran/logo.png".source = ./assets/splash-logo.png;
|
||||
environment.etc."sovran/flake".source = sovranSource;
|
||||
environment.etc."sovran/installer.py".source = ./installer.py;
|
||||
|
||||
Reference in New Issue
Block a user