3 sftpRoot = "/var/lib/sftp";
6 fileSystems."${sftpRoot}/films" = {
7 device = "/mnt/off3/julm/public/podcasts/films";
8 options = [ "bind" "ro" "nofail" ];
10 fileSystems."${sftpRoot}/camera" = {
11 device = "/mnt/off2/julm/perso/camera";
12 options = [ "bind" "ro" "nofail" ];
14 services.openssh.extraConfig = ''
16 AllowAgentForwarding no
18 ChrootDirectory ${sftpRoot}
19 ForceCommand internal-sftp -u 0002