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