{ config, pkgs, ... }: { services.vsftpd = { enable = true; # Allow anonymous logins. anonymousUser = true; allowWriteableChroot = true; writeEnable = true; # Use 'anonymousUploadEnable' instead of 'anonUploadEnable'. # This allows anonymous users to upload files. anonymousUploadEnable = true; anonymousUmask = "000"; # CORRECT: Use 'anonymousUserHome' to set the root directory. # This should be the path to your NFS mount for scans. anonymousUserHome = "/mnt/service/data/paperless/consume"; # This option is available in your list. Set to false for better security anonymousMkdirEnable = false; # For any setting not in the NixOS option list, use extraConfig. extraConfig = '' # Log all transfers. xferlog_enable=YES ''; }; }