services.autofs.autoMaster
NixOS option
Contents of /etc/auto.master file. See auto.master(5) and autofs(5).
type: stringExample
declared in: nixos/modules/services/misc/autofs.nixView source on NixOS/nixpkgs →let
mapConf = pkgs.writeText "auto" ''
kernel -ro,soft,intr ftp.kernel.org:/pub/linux
boot -fstype=ext2 :/dev/hda1
windoze -fstype=smbfs ://windoze/c
removable -fstype=ext2 :/dev/hdd
cd -fstype=iso9660,ro :/dev/hdc
floppy -fstype=auto :/dev/fd0
server -rw,hard,intr / -ro myserver.me.org:/ \
/usr myserver.me.org:/usr \
/home myserver.me.org:/home
'';
in ''
/auto file:${mapConf}
''