summary refs log tree commit diff
path: root/nixos/modules/system/boot/initrd-ssh.nix
diff options
context:
space:
mode:
authorFinn Behrens <me@kloenk.de>2020-04-27 15:07:25 +0200
committerMilan <me@pbb.lc>2020-05-03 20:11:52 +0200
commitdaa0dfe4f44fb6dbd489b2c9ba4f6936cad5f704 (patch)
tree43d6e7cef99f33f888fd0001f9ee1bf856d71883 /nixos/modules/system/boot/initrd-ssh.nix
parent65d4935c0d0cc67e2c22911150bfda8fb597c12d (diff)
downloadnixpkgs-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.nix8
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 = [