blob: 7df989d3a127f30f8364750407b063ab6da7c509 (
plain) (
tree)
|
|
{ config, pkgs, lib, ... }:
{
services.samba = {
enable = true;
securityType = "user";
extraConfig = ''
workgroup = WORKGROUP
server string = tahoe
netbios name = tahoe
security = user
guest account = nobody
mangled names = no
client min protocol = SMB2
map to guest = bad user
ntlm auth = true
'';
shares = {
music = {
path = "/data/fast/music";
browseable = "yes";
"read only" = "yes";
"guest ok" = "yes";
};
videos = {
path = "/data/fast/videos";
browseable = "yes";
"read only" = "yes";
"guest ok" = "yes";
};
};
};
}
|