vsftpd.nix: Add possibility to add RSA key file

Changed files
+9
nixos
modules
services
networking
+9
nixos/modules/services/networking/vsftpd.nix
···
ssl_enable=YES
rsa_cert_file=${cfg.rsaCertFile}
''}
${optionalString (cfg.userlistFile != null) ''
userlist_file=${cfg.userlistFile}
''}
···
type = types.nullOr types.path;
default = null;
description = "RSA certificate file.";
};
anonymousUmask = mkOption {
···
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}
''}
···
type = types.nullOr types.path;
default = null;
description = "RSA certificate file.";
+
};
+
+
rsaKeyFile = mkOption {
+
type = types.nullOr types.path;
+
default = null;
+
description = "RSA private key file.";
};
anonymousUmask = mkOption {