nixos/initrd-ssh: add extraConfig Options
This commit is contained in:
parent
65d4935c0d
commit
daa0dfe4f4
1 changed files with 8 additions and 0 deletions
|
@ -83,6 +83,12 @@ in
|
|||
Authorized keys for the root user on initrd.
|
||||
'';
|
||||
};
|
||||
|
||||
extraConfig = mkOption {
|
||||
type = types.lines;
|
||||
default = "";
|
||||
description = "Verbatim contents of <filename>sshd_config</filename>.";
|
||||
};
|
||||
};
|
||||
|
||||
imports =
|
||||
|
@ -126,6 +132,8 @@ in
|
|||
'' else ''
|
||||
UseDNS no
|
||||
''}
|
||||
|
||||
${cfg.extraConfig}
|
||||
'';
|
||||
in mkIf (config.boot.initrd.network.enable && cfg.enable) {
|
||||
assertions = [
|
||||
|
|
Loading…
Reference in a new issue