From 7a484976f826e7faf6c1c9df99d2a59ecd3a0c19 Mon Sep 17 00:00:00 2001 From: ShatteredMINT Date: Thu, 19 Mar 2026 22:00:51 +0100 Subject: [PATCH] add share share to mounts --- network-shares.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/network-shares.nix b/network-shares.nix index bc275ff..89706ce 100644 --- a/network-shares.nix +++ b/network-shares.nix @@ -11,6 +11,15 @@ in ["${automount_opts},credentials=/etc/nixos/smb-secrets,uid=${toString config.users.users.shatteredmint.uid},gid=${toString config.users.groups.users.gid}"]; }; + fileSystems."/mnt/share/shared" = { + device = "//192.168.178.108/shared"; + 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" = {