Make all hosts' initrd network-accessible
First attempt
This commit is contained in:
@@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user