From 1b0bf15195ba912d2a75d47e6bfb17427c805970 Mon Sep 17 00:00:00 2001 From: fleaz Date: Sun, 6 Feb 2022 14:21:48 +0100 Subject: [PATCH] cray: add samba share from bart --- machines/cray/hardware-configuration.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/machines/cray/hardware-configuration.nix b/machines/cray/hardware-configuration.nix index f9f2ac9..3f31955 100644 --- a/machines/cray/hardware-configuration.nix +++ b/machines/cray/hardware-configuration.nix @@ -22,6 +22,16 @@ fsType = "vfat"; }; + fileSystems."/mnt/pool" = { + device = "//BART/Pool/"; + 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"]; + }; + swapDevices = [{ device = "/dev/disk/by-uuid/6a0a9641-00c5-490e-abcc-9efeaeaca1f8"; }];