16 lines
390 B
Nix
16 lines
390 B
Nix
{ lib, pkgs, ... }:
|
|
{
|
|
config.services.vsftpd = {
|
|
enable = true;
|
|
localUsers = true;
|
|
writeEnable = true;
|
|
chrootlocalUser = true;
|
|
allowWriteableChroot = true;
|
|
userDbPath = "/etc/vsftpd/users";
|
|
enableVirtualUsers = true;
|
|
virtualUseLocalPrivs = true;
|
|
localRoot = "/var/lib/vsftpd";
|
|
};
|
|
|
|
config.networking.firewall.allowedTCPPorts = [ 21 ];
|
|
}
|