From 6084c4ac6fe97a78eaf95448ae0d8c2636398d19 Mon Sep 17 00:00:00 2001 From: Henrik Lutzmann Date: Wed, 25 Dec 2024 22:35:02 +0100 Subject: [PATCH] wlin003_GamingPC/system/smb-mount-fsrv.nix aktualisiert --- wlin003_GamingPC/system/smb-mount-fsrv.nix | 156 ++++++++++----------- 1 file changed, 78 insertions(+), 78 deletions(-) diff --git a/wlin003_GamingPC/system/smb-mount-fsrv.nix b/wlin003_GamingPC/system/smb-mount-fsrv.nix index d891ef4..78c00f5 100644 --- a/wlin003_GamingPC/system/smb-mount-fsrv.nix +++ b/wlin003_GamingPC/system/smb-mount-fsrv.nix @@ -1,78 +1,78 @@ -{ config, pkgs, ... }: - -{ - environment.systemPackages = [ pkgs.cifs-utils ]; - - fileSystems."/mnt/fileserver01/Appz" = { - device = "//192.168.10.58/appz/"; - 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,user,users"; - in ["${automount_opts},credentials=/etc/nixos/secrets/samba-secrets,uid=1000,gid=100"]; - }; - - fileSystems."/mnt/fileserver01/Backup" = { - device = "//192.168.10.58/backup/"; - 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,user,users"; - in ["${automount_opts},credentials=/etc/nixos/secrets/samba-secrets,uid=1000,gid=100"]; - }; - - fileSystems."/mnt/fileserver01/Dateien" = { - device = "//192.168.10.58/dateien/"; - 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,user,users"; - in ["${automount_opts},credentials=/etc/nixos/secrets/samba-secrets,uid=1000,gid=100"]; - }; - - fileSystems."/mnt/fileserver01/Downloads" = { - device = "//192.168.10.58/downloads/"; - 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,user,users"; - in ["${automount_opts},credentials=/etc/nixos/secrets/samba-secrets,uid=1000,gid=100"]; - }; - - fileSystems."/mnt/fileserver01/ISOs" = { - device = "//192.168.10.58/isos/"; - 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,user,users"; - in ["${automount_opts},credentials=/etc/nixos/secrets/samba-secrets,uid=1000,gid=100"]; - }; - - fileSystems."/mnt/fileserver01/Multimedia" = { - device = "//192.168.10.58/multimedia/"; - 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,user,users"; - in ["${automount_opts},credentials=/etc/nixos/secrets/samba-secrets,uid=1000,gid=100"]; - }; - - fileSystems."/mnt/fileserver01/Public" = { - device = "//192.168.10.58/public/"; - 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,user,users"; - in ["${automount_opts},credentials=/etc/nixos/secrets/samba-secrets,uid=1000,gid=100"]; - }; - - fileSystems."/mnt/fileserver01/Share" = { - device = "//192.168.10.58/share/"; - 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,user,users"; - in ["${automount_opts},credentials=/etc/nixos/secrets/samba-secrets,uid=1000,gid=100"]; - }; - -} +{ config, pkgs, ... }: + +{ + environment.systemPackages = [ pkgs.cifs-utils ]; + + fileSystems."/mnt/fileserver01/Appz" = { + device = "//192.168.10.52/appz/"; + 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,user,users"; + in ["${automount_opts},credentials=/etc/nixos/secrets/samba-secrets,uid=1000,gid=100"]; + }; + + fileSystems."/mnt/fileserver01/Backup" = { + device = "//192.168.10.52/backup/"; + 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,user,users"; + in ["${automount_opts},credentials=/etc/nixos/secrets/samba-secrets,uid=1000,gid=100"]; + }; + + fileSystems."/mnt/fileserver01/Dateien" = { + device = "//192.168.10.52/dateien/"; + 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,user,users"; + in ["${automount_opts},credentials=/etc/nixos/secrets/samba-secrets,uid=1000,gid=100"]; + }; + + fileSystems."/mnt/fileserver01/Downloads" = { + device = "//192.168.10.52/downloads/"; + 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,user,users"; + in ["${automount_opts},credentials=/etc/nixos/secrets/samba-secrets,uid=1000,gid=100"]; + }; + + fileSystems."/mnt/fileserver01/ISOs" = { + device = "//192.168.10.52/isos/"; + 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,user,users"; + in ["${automount_opts},credentials=/etc/nixos/secrets/samba-secrets,uid=1000,gid=100"]; + }; + + fileSystems."/mnt/fileserver01/Multimedia" = { + device = "//192.168.10.52/multimedia/"; + 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,user,users"; + in ["${automount_opts},credentials=/etc/nixos/secrets/samba-secrets,uid=1000,gid=100"]; + }; + + fileSystems."/mnt/fileserver01/Public" = { + device = "//192.168.10.52/public/"; + 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,user,users"; + in ["${automount_opts},credentials=/etc/nixos/secrets/samba-secrets,uid=1000,gid=100"]; + }; + + fileSystems."/mnt/fileserver01/Share" = { + device = "//192.168.10.52/share/"; + 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,user,users"; + in ["${automount_opts},credentials=/etc/nixos/secrets/samba-secrets,uid=1000,gid=100"]; + }; + +} \ No newline at end of file