From 44d314ac6d0219fe9ed82d1eda1e0498a084b07b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kha=C3=AFs=20COLIN?= Date: Mon, 5 Aug 2024 11:42:50 +0200 Subject: [PATCH] books: add books smb share --- nixos/configuration.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index c7edcd7..77ea0a7 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -160,6 +160,15 @@ in [ "${automount_opts},credentials=/etc/nixos/secrets/music.smb" ]; }; + fileSystems."/home/khais/Books" = { + device = "//void/Books"; + fsType = "cifs"; + options = let + # prevent hanging when network is not reachable + 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/secrets/books.smb" ]; + }; + # font configuration fonts = { packages = with pkgs; [