Disable auto smb mounts
This commit is contained in:
@ -42,35 +42,36 @@
|
|||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/media/Picture" = {
|
# TODO: Figure out those mount options, it makes many operations (e.g. filepicker) extremely slow as the gvs stuff hangs
|
||||||
device = "//192.168.86.100/Picture";
|
# fileSystems."/media/Picture" = {
|
||||||
fsType = "cifs";
|
# device = "//192.168.86.100/Picture";
|
||||||
options = let
|
# fsType = "cifs";
|
||||||
# this line prevents hanging on network split
|
# options = let
|
||||||
automount_opts = "x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s";
|
# # 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" = {
|
# fileSystems."/media/Video" = {
|
||||||
device = "//192.168.86.100/Video";
|
# device = "//192.168.86.100/Video";
|
||||||
fsType = "cifs";
|
# fsType = "cifs";
|
||||||
options = let
|
# options = let
|
||||||
# this line prevents hanging on network split
|
# # 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.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" = {
|
# fileSystems."/media/Usenet" = {
|
||||||
device = "//192.168.86.100/Usenet";
|
# device = "//192.168.86.100/Usenet";
|
||||||
fsType = "cifs";
|
# fsType = "cifs";
|
||||||
options = let
|
# options = let
|
||||||
# this line prevents hanging on network split
|
# # 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.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 [
|
swapDevices = lib.mkForce [
|
||||||
# {
|
# {
|
||||||
|
Reference in New Issue
Block a user