Samba: Difference between revisions
m fixed incorrect line that did not work because it was missing the toString function so that uid and gid could be inserted into the samba options. Also was just missing 'uid=' for the uid option. |
m Added config for avahi which I needed to enable in order to discover drives on windows. |
||
Line 51: | Line 51: | ||
openFirewall = true; | openFirewall = true; | ||
}; | }; | ||
services.avahi = { | |||
publish.enable = true; | |||
publish.userServices = true; | |||
# ^^ Needed to allow samba to automatically register mDNS records (without the need for an `extraServiceFile` | |||
nssmdns4 = true; | |||
# ^^ Not one hundred percent sure if this is needed- if it aint broke, don't fix it | |||
enable = true; | |||
openFirewall = true; | |||
}; | |||
networking.firewall.enable = true; | networking.firewall.enable = true; | ||
Line 56: | Line 67: | ||
</nowiki>}} | </nowiki>}} | ||
The <code>samba-wsdd</code> service is used to advertise the shares to Windows hosts. | The <code>samba-wsdd</code> service and avahi is used to advertise the shares to Windows hosts. | ||
=== User Authentication === | === User Authentication === |