books: add books smb share

This commit is contained in:
Khaïs COLIN 2024-08-05 11:42:50 +02:00
parent 39f1887073
commit 44d314ac6d

View file

@ -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; [