Home : Add ftp server.
This commit is contained in:
parent
91048d7866
commit
d0ba35a059
16
.config/linux/system/Ftpd.nix
Normal file
16
.config/linux/system/Ftpd.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
services.vsftpd = {
|
||||
enable = true;
|
||||
anonymousUser = true;
|
||||
anonymousUserNoPassword = true;
|
||||
anonymousUploadEnable = true;
|
||||
anonymousMkdirEnable = true;
|
||||
anonymousUmask = "000";
|
||||
anonymousUserHome = "/storage/hot/ftp";
|
||||
allowWriteableChroot = true;
|
||||
writeEnable = true;
|
||||
localUsers = false;
|
||||
};
|
||||
}
|
|
@ -8,6 +8,7 @@
|
|||
./PhotosProcess.nix
|
||||
./YandexMusic.nix
|
||||
../Common.nix
|
||||
../Ftpd.nix
|
||||
../PowersaveAmd.nix
|
||||
../AmdGpu.nix
|
||||
../Docker.nix
|
||||
|
@ -43,6 +44,9 @@
|
|||
systemd.services.docker.wantedBy = lib.mkForce [ ];
|
||||
systemd.sockets.docker.wantedBy = lib.mkForce [ ];
|
||||
|
||||
# Disable ftpd autostart.
|
||||
systemd.services.vsftpd.wantedBy = lib.mkForce [ ];
|
||||
|
||||
# Do not touch ever.
|
||||
system.stateVersion = "23.11";
|
||||
}
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
listen=YES
|
||||
anonymous_enable=YES
|
||||
local_enable=NO
|
||||
write_enable=YES
|
||||
anon_upload_enable=YES
|
||||
dirmessage_enable=YES
|
||||
use_localtime=YES
|
||||
xferlog_enable=NO
|
||||
connect_from_port_20=YES
|
||||
anon_root=/var/mnt/storage/hot/ftp
|
||||
#pam_service_name=vsftpd
|
||||
allow_writeable_chroot=YES
|
||||
anon_mkdir_write_enable=YES
|
||||
anon_other_write_enable=YES
|
||||
anon_umask=000
|
Reference in a new issue