{ config, pkgs, ... }: { fileSystems."/mnt/volume-hel1-2" = { device = "/dev/disk/by-id/scsi-0HC_Volume_103422022"; fsType = "ext4"; options = [ "defaults" "discard" "nofail" ]; }; environment.systemPackages = [ pkgs.rclone pkgs.samba pkgs.cifs-utils ]; age.secrets.smbsecret = { file = ../../keys/smbshare; owner = "selene"; }; fileSystems."/mnt/sbox" = { device = "//u504615.your-storagebox.de/backup"; fsType = "cifs"; options = let # this line prevents hanging on network split automount_opts = "x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s"; in [ "${automount_opts},credentials=${config.age.secrets.smbsecret.path}" ]; }; }