KSMBD: Difference between revisions

From NixOS Wiki
(Add ksmbd example)
 
(fix markup)
 
Line 3: Line 3:
== Example configuration ==
== Example configuration ==


The following example will create a read-only file share of <pre>/var/lib/ksmbd</pre> with guest login enabled.
The following example will create a read-only file share of <code>/var/lib/ksmbd</code> with guest login enabled.


<syntaxHighlight lang=nix>
<syntaxHighlight lang=nix>

Latest revision as of 06:20, 30 April 2024

KSMBD is a linux kernel server which implements SMB3 protocol in kernel space for sharing files over network.

Example configuration

The following example will create a read-only file share of /var/lib/ksmbd with guest login enabled.

{
  services.ksmbd.enable = true;
  services.ksmbd.openFirewall = true;
  services.ksmbd.shares.public = {
    path = "/var/lib/ksmbd";
    "read only" = true;
    browseable = "yes";
    "guest ok" = "yes";
    comment = "Public samba share.";
  };
}