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
|
home-manager
|
||||||
git
|
git
|
||||||
gnumake
|
gnumake
|
||||||
|
cifs-utils
|
||||||
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
||||||
# wget
|
# wget
|
||||||
];
|
];
|
||||||
|
|
@ -125,6 +126,17 @@
|
||||||
# enableSSHSupport = true;
|
# 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:
|
# List services that you want to enable:
|
||||||
|
|
||||||
services.tailscale.enable = true;
|
services.tailscale.enable = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue