music: automount smb music share

This commit is contained in:
Khaïs COLIN 2024-07-17 19:07:44 +02:00
parent b0e7b82bb6
commit 3e4528e021

View file

@ -113,6 +113,7 @@
home-manager
git
gnumake
cifs-utils
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
# wget
];
@ -125,6 +126,17 @@
# enableSSHSupport = true;
# };
# automount smb music share
fileSystems."/home/khais/Music" = {
device = "//void/Music";
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/music.smb" ];
};
# List services that you want to enable:
services.tailscale.enable = true;