From c09d60d686dc53e19dbfb5d58fa705ad4a2ec06c Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 28 Dec 2021 21:42:05 +0100 Subject: vidhar: samba --- hosts/vidhar/default.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'hosts/vidhar/default.nix') diff --git a/hosts/vidhar/default.nix b/hosts/vidhar/default.nix index 327c51b3..d71674f8 100644 --- a/hosts/vidhar/default.nix +++ b/hosts/vidhar/default.nix @@ -336,5 +336,28 @@ }; }; }; + + services.samba = { + enable = true; + securityType = "user"; + extraConfig = '' + workgroup = WORKGROUP + ''; + shares = { + homes = { + path = "/home/%S"; + browseable = "no"; + "valid users" = "%S"; + "read only" = "no"; + "create mask" = "0700"; + "directory mask" = "0700"; + "browseable" = "no"; + }; + }; + }; + services.samba-wssd = { + enable = true; + workgroup = "WORKGROUP"; + }; }; } -- cgit v1.2.3