diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2021-12-28 22:16:41 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2021-12-28 22:16:41 +0100 |
commit | 8d54a2a331132efb7410b39a65d2de28972434ee (patch) | |
tree | 03717a1795defddb4fe1da02353156800490d118 /hosts | |
parent | 7814d48a592140ad4e310ec9df79aa750e8672c8 (diff) | |
download | nixos-8d54a2a331132efb7410b39a65d2de28972434ee.tar nixos-8d54a2a331132efb7410b39a65d2de28972434ee.tar.gz nixos-8d54a2a331132efb7410b39a65d2de28972434ee.tar.bz2 nixos-8d54a2a331132efb7410b39a65d2de28972434ee.tar.xz nixos-8d54a2a331132efb7410b39a65d2de28972434ee.zip |
vidhar: samba: ...
Diffstat (limited to 'hosts')
-rw-r--r-- | hosts/vidhar/default.nix | 42 |
1 files changed, 41 insertions, 1 deletions
diff --git a/hosts/vidhar/default.nix b/hosts/vidhar/default.nix index 6913b9da..d97de10b 100644 --- a/hosts/vidhar/default.nix +++ b/hosts/vidhar/default.nix | |||
@@ -341,10 +341,17 @@ | |||
341 | enable = true; | 341 | enable = true; |
342 | securityType = "user"; | 342 | securityType = "user"; |
343 | extraConfig = '' | 343 | extraConfig = '' |
344 | domain master = yes | ||
344 | workgroup = WORKGROUP | 345 | workgroup = WORKGROUP |
346 | load printers = no | ||
347 | printing = bsd | ||
348 | printcap name = /dev/null | ||
349 | disable spoolss = yes | ||
350 | guest account = nobody | ||
345 | ''; | 351 | ''; |
346 | shares = { | 352 | shares = { |
347 | homes = { | 353 | homes = { |
354 | comment = "Home Directories"; | ||
348 | path = "/home/%S"; | 355 | path = "/home/%S"; |
349 | browseable = "no"; | 356 | browseable = "no"; |
350 | "valid users" = "%S"; | 357 | "valid users" = "%S"; |
@@ -356,7 +363,14 @@ | |||
356 | "shadow:sort" = "desc"; | 363 | "shadow:sort" = "desc"; |
357 | "shadow: format" = "-%Y-%m-%d-%Hh%MU"; | 364 | "shadow: format" = "-%Y-%m-%d-%Hh%MU"; |
358 | "shadow: snapprefix" = "^zfs-auto-snap_\(frequent\)\{0,1\}\(hourly\)\{0,1\}\(daily\)\{0,1\}\(monthly\)\{0,1\}"; | 365 | "shadow: snapprefix" = "^zfs-auto-snap_\(frequent\)\{0,1\}\(hourly\)\{0,1\}\(daily\)\{0,1\}\(monthly\)\{0,1\}"; |
359 | "shadow: delimiter" = "-20"; | 366 | "shadow: delimiter" = ""; |
367 | }; | ||
368 | eos = { | ||
369 | comment = "Disk image of eos"; | ||
370 | browseable = true; | ||
371 | "valid users" = "mherold"; | ||
372 | writeable = "true"; | ||
373 | path = "/srv/eos"; | ||
360 | }; | 374 | }; |
361 | }; | 375 | }; |
362 | }; | 376 | }; |
@@ -365,4 +379,30 @@ | |||
365 | workgroup = "WORKGROUP"; | 379 | workgroup = "WORKGROUP"; |
366 | }; | 380 | }; |
367 | }; | 381 | }; |
382 | |||
383 | fileSystems."/srv/eos.lower" = { | ||
384 | device = "UUID=2A3052E73052BA11"; | ||
385 | fsType = "ntfs3"; | ||
386 | options = [ "ro" "uid=mherold" "gid=users" "fmask=0177" "dmask=0077" ]; | ||
387 | }; | ||
388 | |||
389 | systemd.mounts = [ | ||
390 | { | ||
391 | wantedBy = [ "samba-smbd.service" ]; | ||
392 | before = [ "samba-smbd.service" ]; | ||
393 | |||
394 | where = "/srv/eos"; | ||
395 | what = "overlay"; | ||
396 | type = "overlay"; | ||
397 | options = lib.concatStringsSep "," | ||
398 | [ "lowerdir=/srv/eos.lower" | ||
399 | "upperdir=/home/mherold/.eos.upper" | ||
400 | "workdir=/home/mherold/.eos.work" | ||
401 | ]; | ||
402 | |||
403 | unitConfig = { | ||
404 | RequiresMountsFor = [ "/srv/eos.lower" "/home/mherold/.eos.upper" "/home/mherold/.eos.work" ]; | ||
405 | }; | ||
406 | } | ||
407 | ]; | ||
368 | } | 408 | } |