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

View file

@ -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 = [