Make all hosts' initrd network-accessible

First attempt
This commit is contained in:
2021-10-13 17:23:47 -07:00
parent c310aeb414
commit 24dc18ee81
17 changed files with 165 additions and 41 deletions
+32
View File
@@ -176,6 +176,38 @@ rec {
};
android-dev = mkEnableOption "Enable ADB on the host.";
# FIXME: This probably belongs elsewhere...
initrd-ip = mkOption {
type = nullOr str;
description = "IP to assign to the kernel/initrd, to allow access when boot fails.";
default = null;
};
initrd-ssh-keypair = let
keypair = { ... }: {
options = {
public-key = mkOption {
type = str;
description = "SSH public key.";
};
private-key = mkOption {
type = str;
description = "SSH private key.";
};
type = mkOption {
type = enum [ "rsa" "ecdsa" "ed25519" ];
description = "SSH key type."
};
};
};
in mkOption {
type = nullOr (submodule keypair);
description = "SSH Keypair to use for initrd.";
default = null;
};
};
};
}