add share share to mounts

This commit is contained in:
2026-03-19 22:00:51 +01:00
parent e27b5206e7
commit 7a484976f8

View File

@@ -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}"]; 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 # # mount network shares
# fileSystems."/mnt/nas/private" = { # fileSystems."/mnt/nas/private" = {