diff options
Diffstat (limited to 'hosts/vidhar/default.nix')
-rw-r--r-- | hosts/vidhar/default.nix | 23 |
1 files changed, 23 insertions, 0 deletions
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 @@ | |||
336 | }; | 336 | }; |
337 | }; | 337 | }; |
338 | }; | 338 | }; |
339 | |||
340 | services.samba = { | ||
341 | enable = true; | ||
342 | securityType = "user"; | ||
343 | extraConfig = '' | ||
344 | workgroup = WORKGROUP | ||
345 | ''; | ||
346 | shares = { | ||
347 | homes = { | ||
348 | path = "/home/%S"; | ||
349 | browseable = "no"; | ||
350 | "valid users" = "%S"; | ||
351 | "read only" = "no"; | ||
352 | "create mask" = "0700"; | ||
353 | "directory mask" = "0700"; | ||
354 | "browseable" = "no"; | ||
355 | }; | ||
356 | }; | ||
357 | }; | ||
358 | services.samba-wssd = { | ||
359 | enable = true; | ||
360 | workgroup = "WORKGROUP"; | ||
361 | }; | ||
339 | }; | 362 | }; |
340 | } | 363 | } |