Samba: Difference between revisions

imported>Makefu
remove broken links
imported>Makefu
split into client and server
Line 2: Line 2:
This guide will help you on how to use samba on nixos.
This guide will help you on how to use samba on nixos.


== cifs mount ==
== Samba Client ==
=== cifs mount ===


The following snippets shows how to mount a CIFS (Windows) share in NixOS.
The following snippets shows how to mount a CIFS (Windows) share in NixOS.
Line 29: Line 30:
</syntaxhighlight>
</syntaxhighlight>


== excerpt of /etc/nixos/configuration.nix ==
== Samba Server ==
=== excerpt of /etc/nixos/configuration.nix ===


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
Line 84: Line 86:
samba should startup afterwards
samba should startup afterwards


== stopping/restarting the services ==
=== stopping/restarting the services ===
<syntaxhighlight lang="console">
<syntaxhighlight lang="console">
# systemctl stop samba
# systemctl stop samba
Line 91: Line 93:
</syntaxhighlight>
</syntaxhighlight>


== Use Cases ==
=== Use Cases ===
=== Apple Time Machine ===
==== Apple Time Machine ====
nixpkgs includes Samba4.8-git, which adds support for using shares for Time Machine backups on macOS 10.12+.
nixpkgs includes Samba4.8-git, which adds support for using shares for Time Machine backups on macOS 10.12+.
Example configuration:
Example configuration: