diff options
Diffstat (limited to 'machines/x220/hardware-configuration.nix')
-rwxr-xr-x | machines/x220/hardware-configuration.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/machines/x220/hardware-configuration.nix b/machines/x220/hardware-configuration.nix index d2c7fbc..4f7b908 100755 --- a/machines/x220/hardware-configuration.nix +++ b/machines/x220/hardware-configuration.nix @@ -45,6 +45,15 @@ device = "/dev/disk/by-label/docker"; fsType = "ext4"; }; + "/mnt/qnap" = { + device = "//192.168.1.119/Patryk"; + 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,vers=1.0"; + + in ["${automount_opts},credentials=/etc/nixos/smb-secrets"]; + }; }; swapDevices = [ { device = "/dev/sda2"; } ]; |