From 8b6572107d03cdd940d23244dca25e4857043d13 Mon Sep 17 00:00:00 2001 From: sstent Date: Fri, 24 Feb 2023 11:32:57 -0500 Subject: [PATCH] sync --- hosts/wsl2/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/hosts/wsl2/default.nix b/hosts/wsl2/default.nix index f82eb74..f912fa7 100644 --- a/hosts/wsl2/default.nix +++ b/hosts/wsl2/default.nix @@ -39,7 +39,15 @@ npiperelay = callPackage ../../pkgs/npiperelay { }; #wsl-ssh-agent-relay = callPackage ../../pkgs/wsl-ssh-agent-relay { }; }; - + fileSystems."/mnt/Public" = { + device = "//192.168.1.109/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"; + # in ["${automount_opts},credentials=/etc/nixos/smb-secrets"]; + in ["${automount_opts}"]; + }; systemd.services.nixs-wsl-systemd-fix = { description = "Fix the /dev/shm symlink to be a mount";