From ec8d1733e3c2bbf3c99a7174102daf67f0435945 Mon Sep 17 00:00:00 2001 From: ChUrl Date: Tue, 8 Aug 2023 12:24:46 +0200 Subject: [PATCH] Disable auto smb mounts --- system/nixinator/hardware-configuration.nix | 49 +++++++++++---------- 1 file changed, 25 insertions(+), 24 deletions(-) diff --git a/system/nixinator/hardware-configuration.nix b/system/nixinator/hardware-configuration.nix index 90a74488..389448d7 100644 --- a/system/nixinator/hardware-configuration.nix +++ b/system/nixinator/hardware-configuration.nix @@ -42,35 +42,36 @@ fsType = "vfat"; }; - fileSystems."/media/Picture" = { - device = "//192.168.86.100/Picture"; - 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"; + # TODO: Figure out those mount options, it makes many operations (e.g. filepicker) extremely slow as the gvs stuff hangs + # fileSystems."/media/Picture" = { + # device = "//192.168.86.100/Picture"; + # 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=/home/christoph/samba.login" "uid=1000" "gid=1000"]; - }; + # in ["${automount_opts},credentials=/home/christoph/samba.login" "uid=1000" "gid=1000"]; + # }; - fileSystems."/media/Video" = { - device = "//192.168.86.100/Video"; - 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"; + # fileSystems."/media/Video" = { + # device = "//192.168.86.100/Video"; + # 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=/home/christoph/samba.login" "uid=1000" "gid=1000"]; - }; + # in ["${automount_opts},credentials=/home/christoph/samba.login" "uid=1000" "gid=1000"]; + # }; - fileSystems."/media/Usenet" = { - device = "//192.168.86.100/Usenet"; - 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"; + # fileSystems."/media/Usenet" = { + # device = "//192.168.86.100/Usenet"; + # 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=/home/christoph/samba.login" "uid=1000" "gid=1000"]; - }; + # in ["${automount_opts},credentials=/home/christoph/samba.login" "uid=1000" "gid=1000"]; + # }; swapDevices = lib.mkForce [ # {