diff options
author | Finn Behrens <me@kloenk.de> | 2020-04-27 15:07:25 +0200 |
---|---|---|
committer | Milan <me@pbb.lc> | 2020-05-03 20:11:52 +0200 |
commit | daa0dfe4f44fb6dbd489b2c9ba4f6936cad5f704 (patch) | |
tree | 43d6e7cef99f33f888fd0001f9ee1bf856d71883 /nixos/modules/system/boot/initrd-ssh.nix | |
parent | 65d4935c0d0cc67e2c22911150bfda8fb597c12d (diff) | |
download | nixpkgs-daa0dfe4f44fb6dbd489b2c9ba4f6936cad5f704.tar nixpkgs-daa0dfe4f44fb6dbd489b2c9ba4f6936cad5f704.tar.gz nixpkgs-daa0dfe4f44fb6dbd489b2c9ba4f6936cad5f704.tar.bz2 nixpkgs-daa0dfe4f44fb6dbd489b2c9ba4f6936cad5f704.tar.lz nixpkgs-daa0dfe4f44fb6dbd489b2c9ba4f6936cad5f704.tar.xz nixpkgs-daa0dfe4f44fb6dbd489b2c9ba4f6936cad5f704.tar.zst nixpkgs-daa0dfe4f44fb6dbd489b2c9ba4f6936cad5f704.zip |
nixos/initrd-ssh: add extraConfig Options
Diffstat (limited to 'nixos/modules/system/boot/initrd-ssh.nix')
-rw-r--r-- | nixos/modules/system/boot/initrd-ssh.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/initrd-ssh.nix b/nixos/modules/system/boot/initrd-ssh.nix index 60760487a1d..f7ef2610370 100644 --- a/nixos/modules/system/boot/initrd-ssh.nix +++ b/nixos/modules/system/boot/initrd-ssh.nix @@ -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 = [ |