Disable byte range locking for smbfs.

This commit is contained in:
2025-12-02 20:38:48 +00:00
parent d6e0e09e87
commit 0a0748b920

View File

@@ -1,7 +1,7 @@
{ pkgs, ... }:
let
# this line prevents hanging on network split
automount_opts = "x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.mount-timeout=5s";
automount_opts = "x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.mount-timeout=5s,nobrl";
in
{
environment.systemPackages = [ pkgs.cifs-utils ];
@@ -17,7 +17,7 @@ in
fileSystems."/data/media" = {
device = "//fractal/media";
fsType = "cifs";
options = [ "uid=1000,${automount_opts},credentials=/etc/nixos/smb-secrets" ];
options = [ "uid=1000,${automount_opts},credentials=/etc/nixos/smb-secrets", ];
};
fileSystems."/data/shared" = {