From 5a21c924225cd6254d70016b82e1abaecf319069 Mon Sep 17 00:00:00 2001 From: ChUrl Date: Thu, 13 Jul 2023 00:16:20 +0200 Subject: [PATCH] Add samba shares to servenix --- system/servenix/hardware-configuration.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/system/servenix/hardware-configuration.nix b/system/servenix/hardware-configuration.nix index 66d05741..0fe12dbf 100644 --- a/system/servenix/hardware-configuration.nix +++ b/system/servenix/hardware-configuration.nix @@ -33,6 +33,26 @@ options = [ "noatime" "nodiratime" "discard" ]; }; + 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"]; + }; + + 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"]; + }; + swapDevices = lib.mkForce [ # { # device = "/var/swap";