igor: Enable vsftpd
This commit is contained in:
parent
981e98da94
commit
3cf1677ba8
2 changed files with 33 additions and 1 deletions
17
modules/vsftpd/default.nix
Normal file
17
modules/vsftpd/default.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{ lib, pkgs, ... }:
|
||||
{
|
||||
config.services.vsftpd = {
|
||||
enable = true;
|
||||
localUsers = true;
|
||||
writeEnable = true;
|
||||
chrootlocalUser = true;
|
||||
allowWriteableChroot = true;
|
||||
userlist = [ "scan" ];
|
||||
};
|
||||
|
||||
config.users.users.scan = {
|
||||
isNormalUser = true;
|
||||
};
|
||||
|
||||
config.networking.firewall.allowedTCPPorts = [ 21 ];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue