3   sftpRoot = "/var/lib/sftp";
 
   8       where = "${sftpRoot}/films";
 
  10       what = "/mnt/off3/julm/public/podcasts/films";
 
  11       options = "bind,rw,noauto";
 
  12       requires = [ "zfs-import@off3.service" ];
 
  14         "zfs-import@off3.service"
 
  17         "mnt-off3-julm-public-podcasts.mount"
 
  19       #bindsTo = [ "mnt-off3-julm-public-podcasts.mount" ];
 
  21         #AssertDirectoryNotEmpty = "/mnt/off3/julm/public/podcasts/films";
 
  25   systemd.automounts = [
 
  27       where = "${sftpRoot}/films";
 
  28       wantedBy = [ "zfs-mount.service" ];
 
  33       #automountConfig.TimeoutIdleSec = "5 min";
 
  36   #fileSystems."${sftpRoot}/camera" = {
 
  37   #  device = "/mnt/off2/julm/perso/camera";
 
  38   #  options = [ "bind" "ro" "noauto" ];
 
  40   services.openssh.extraConfig = ''
 
  42       AllowAgentForwarding no
 
  44       ChrootDirectory ${sftpRoot}
 
  45       ForceCommand internal-sftp -u 0002