about summary refs log tree commit diff
path: root/hosts/common/server/samba.nix
blob: d3bb8578a8fa7dd0a86c0466f4564a747e0d4016 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ 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/media/music";
        browseable = "yes";
        "read only" = "yes";
        "guest ok" = "yes";
      };
    };
  };
}