Removed ignored timeout and force uid.

This commit is contained in:
2025-05-04 20:16:22 +01:00
parent 9ef1cafc32
commit 68a3339794

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.device-timeout=5s,x-systemd.mount-timeout=5s";
automount_opts = "x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.mount-timeout=5s";
in
{
environment.systemPackages = [ pkgs.cifs-utils ];
@@ -17,12 +17,12 @@ in
fileSystems."/data/media" = {
device = "//fractal/media";
fsType = "cifs";
options = [ "${automount_opts},credentials=/etc/nixos/smb-secrets" ];
options = [ "uid=1000,${automount_opts},credentials=/etc/nixos/smb-secrets" ];
};
fileSystems."/data/shared" = {
device = "//fractal/shared";
fsType = "cifs";
options = [ "${automount_opts},credentials=/etc/nixos/smb-secrets" ];
options = [ "uid=1000,${automount_opts},credentials=/etc/nixos/smb-secrets" ];
};
}