2024-12-18 09:40:11 +03:00
|
|
|
{ config, lib, ... }:
|
|
|
|
let
|
|
|
|
cfg = config.module.ftpd;
|
|
|
|
in
|
2024-10-11 23:27:07 +03:00
|
|
|
{
|
2024-12-18 09:40:11 +03:00
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
services.vsftpd = {
|
|
|
|
enable = true;
|
|
|
|
allowWriteableChroot = true;
|
|
|
|
anonymousMkdirEnable = true;
|
|
|
|
anonymousUmask = "000";
|
|
|
|
anonymousUploadEnable = true;
|
|
|
|
anonymousUser = true;
|
|
|
|
anonymousUserHome = cfg.storage;
|
|
|
|
anonymousUserNoPassword = true;
|
|
|
|
localUsers = false;
|
|
|
|
writeEnable = true;
|
|
|
|
extraConfig = ''
|
|
|
|
anon_other_write_enable=YES
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
2024-03-04 00:34:39 +03:00
|
|
|
}
|