summaryrefslogtreecommitdiff
path: root/hosts/vidhar/default.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2021-12-28 21:42:05 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2021-12-28 21:42:05 +0100
commitc09d60d686dc53e19dbfb5d58fa705ad4a2ec06c (patch)
treefabf9c218589f07c142bf679acc6036f6315e618 /hosts/vidhar/default.nix
parent5de2d7b834171b75d79e86aa2097df27ee529aee (diff)
downloadnixos-c09d60d686dc53e19dbfb5d58fa705ad4a2ec06c.tar
nixos-c09d60d686dc53e19dbfb5d58fa705ad4a2ec06c.tar.gz
nixos-c09d60d686dc53e19dbfb5d58fa705ad4a2ec06c.tar.bz2
nixos-c09d60d686dc53e19dbfb5d58fa705ad4a2ec06c.tar.xz
nixos-c09d60d686dc53e19dbfb5d58fa705ad4a2ec06c.zip
vidhar: samba
Diffstat (limited to 'hosts/vidhar/default.nix')
-rw-r--r--hosts/vidhar/default.nix23
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}