Samba: Difference between revisions

imported>Symphorien
the section about PCManFM is true for nautilus and thunar
imported>Symphorien
mention firewall issue with netbios
Line 1: Line 1:
== Motivation ==
This guide will help you on how to use samba on nixos.
This guide will help you on how to use samba on nixos.


Line 28: Line 27:
domain=<DOMAIN>
domain=<DOMAIN>
password=<PASSWORD>
password=<PASSWORD>
</syntaxhighlight>
== Firewall ==
Samba discovery of machines and shares may need the firewall to be tuned ([https://wiki.archlinux.org/index.php/Samba#.22Browsing.22_network_fails_with_.22Failed_to_retrieve_share_list_from_server.22 source]):
in <code>/etc/nixos/configuration.nix</code>, add:
<syntaxhighlight lang="nix">
networking.firewall.extraCommands = ''iptables -t raw -A OUTPUT -p udp -m udp --dport 137 -j CT --helper netbios-ns";
</syntaxhighlight>
</syntaxhighlight>