diff --git a/configuration.nix b/configuration.nix index 39014a5..eb5e04d 100644 --- a/configuration.nix +++ b/configuration.nix @@ -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;