Enable ftp server
This commit is contained in:
parent
fa8354f1f8
commit
9e47462835
2 changed files with 21 additions and 0 deletions
20
hosts/common/optional/vsftpd.nix
Normal file
20
hosts/common/optional/vsftpd.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
services.vsftpd = {
|
||||
enable = true;
|
||||
writeEnable = true;
|
||||
localUsers = true;
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [21];
|
||||
services.vsftpd.extraConfig = ''
|
||||
pasv_enable=Yes
|
||||
pasv_min_port=51000
|
||||
pasv_max_port=51999
|
||||
'';
|
||||
networking.firewall.allowedTCPPortRanges = [
|
||||
{
|
||||
from = 51000;
|
||||
to = 51999;
|
||||
}
|
||||
];
|
||||
}
|
|
@ -20,6 +20,7 @@ in {
|
|||
../common/optional/systemd-boot.nix
|
||||
../common/optional/gnome-keyring.nix
|
||||
../common/optional/docker.nix
|
||||
../common/optional/vsftpd.nix
|
||||
];
|
||||
|
||||
users.mutableUsers = true;
|
||||
|
|
Loading…
Reference in a new issue