nixos/initrd-ssh: add extraConfig Options
This commit is contained in:
parent
65d4935c0d
commit
daa0dfe4f4
|
@ -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 = [
|
||||||
|
|
Loading…
Reference in New Issue