nixos/initrd-ssh: add extraConfig Options

This commit is contained in:
Finn Behrens 2020-04-27 15:07:25 +02:00 committed by Milan
parent 65d4935c0d
commit daa0dfe4f4
1 changed files with 8 additions and 0 deletions

View File

@ -83,6 +83,12 @@ in
Authorized keys for the root user on initrd. Authorized keys for the root user on initrd.
''; '';
}; };
extraConfig = mkOption {
type = types.lines;
default = "";
description = "Verbatim contents of <filename>sshd_config</filename>.";
};
}; };
imports = imports =
@ -126,6 +132,8 @@ in
'' else '' '' else ''
UseDNS no UseDNS no
''} ''}
${cfg.extraConfig}
''; '';
in mkIf (config.boot.initrd.network.enable && cfg.enable) { in mkIf (config.boot.initrd.network.enable && cfg.enable) {
assertions = [ assertions = [