music: automount smb music share
This commit is contained in:
parent
b0e7b82bb6
commit
3e4528e021
1 changed files with 12 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue