git.iko.soy/typeable/nixpkgs
on master help sign in
vsftpd.nix: Add possibility to add RSA key file
commit973219c97327a59d787fab9e41aee78e12d30f51 authorMango Chutney <team@mangochutney.com.au> dateWed 9 Mar 2016, 01:22 (11 years ago) parent40c586b
1 file changed+9
nixos/modules/services/networking/vsftpd.nix+9
nixos/modules/services/networking/vsftpd.nix+9
@@ -85,6 +85,9 @@ let
8585 ssl_enable=YES
8686 rsa_cert_file=${cfg.rsaCertFile}
8787 ''}
88+ ${optionalString (cfg.rsaKeyFile != null) ''
89+ rsa_private_key_file=${cfg.rsaKeyFile}
90+ ''}
8891 ${optionalString (cfg.userlistFile != null) ''
8992 userlist_file=${cfg.userlistFile}
9093 ''}
@@ -147,6 +150,12 @@ in
147150 description = "RSA certificate file.";
148151 };
149152
153+ rsaKeyFile = mkOption {
154+ type = types.nullOr types.path;
155+ default = null;
156+ description = "RSA private key file.";
157+ };
158+
150159 anonymousUmask = mkOption {
151160 type = types.string;
152161 default = "077";