{ config, lib, pkgs, ... }: { environment.systemPackages = [ pkgs.cifs-utils ]; fileSystems."/mnt/share/private" = { device = "//192.168.178.108/shatteredmint"; 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=/etc/nixos/smb-secrets,uid=${toString config.users.users.shatteredmint.uid},gid=${toString config.users.groups.users.gid}"]; }; # # mount network shares # fileSystems."/mnt/nas/private" = { # device = "dashboard.omv:/ShatteredMINT"; # fsType = "nfs"; # options = [ "x-systemd.automount" "noauto" ]; # # }; # fileSystems."/mnt/nas/shared" = { # device = "dashboard.omv:/default-nas"; # fsType = "nfs"; # options = [ "x-systemd.automount" "noauto" ]; # # }; }