summary refs log tree commit diff
path: root/nixos/modules/services/networking
diff options
context:
space:
mode:
authorMango Chutney <team@mangochutney.com.au>2016-03-09 01:22:19 +0000
committerMango Chutney <team@mangochutney.com.au>2016-03-09 01:32:44 +0000
commit973219c97327a59d787fab9e41aee78e12d30f51 (patch)
treea2311b65ed3c729e26ca9fd4f9296c87fd764644 /nixos/modules/services/networking
parent40c586b7ce2c559374df435f46d673baf711c543 (diff)
downloadnixlib-973219c97327a59d787fab9e41aee78e12d30f51.tar
nixlib-973219c97327a59d787fab9e41aee78e12d30f51.tar.gz
nixlib-973219c97327a59d787fab9e41aee78e12d30f51.tar.bz2
nixlib-973219c97327a59d787fab9e41aee78e12d30f51.tar.lz
nixlib-973219c97327a59d787fab9e41aee78e12d30f51.tar.xz
nixlib-973219c97327a59d787fab9e41aee78e12d30f51.tar.zst
nixlib-973219c97327a59d787fab9e41aee78e12d30f51.zip
vsftpd.nix: Add possibility to add RSA key file
Diffstat (limited to 'nixos/modules/services/networking')
-rw-r--r--nixos/modules/services/networking/vsftpd.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/nixos/modules/services/networking/vsftpd.nix b/nixos/modules/services/networking/vsftpd.nix
index e7301e9ef5f5..7ec484941ede 100644
--- a/nixos/modules/services/networking/vsftpd.nix
+++ b/nixos/modules/services/networking/vsftpd.nix
@@ -85,6 +85,9 @@ let
         ssl_enable=YES
         rsa_cert_file=${cfg.rsaCertFile}
       ''}
+      ${optionalString (cfg.rsaKeyFile != null) ''
+        rsa_private_key_file=${cfg.rsaKeyFile}
+      ''}
       ${optionalString (cfg.userlistFile != null) ''
         userlist_file=${cfg.userlistFile}
       ''}
@@ -147,6 +150,12 @@ in
         description = "RSA certificate file.";
       };
 
+      rsaKeyFile = mkOption {
+        type = types.nullOr types.path;
+        default = null;
+        description = "RSA private key file.";
+      };
+
       anonymousUmask = mkOption {
         type = types.string;
         default = "077";