diff options
-rw-r--r-- | hel.nix | 32 | ||||
-rw-r--r-- | odin.nix | 6 |
2 files changed, 37 insertions, 1 deletions
@@ -556,5 +556,37 @@ | |||
556 | MemoryHigh = "50%"; | 556 | MemoryHigh = "50%"; |
557 | MemoryMax = "75%"; | 557 | MemoryMax = "75%"; |
558 | }; | 558 | }; |
559 | |||
560 | services.samba = { | ||
561 | enable = true; | ||
562 | extraConfig = '' | ||
563 | domain master = no | ||
564 | workgroup = ASGARD | ||
565 | load printers = no | ||
566 | printing = bsd | ||
567 | printcap name = /dev/null | ||
568 | disable spoolss = yes | ||
569 | ''; | ||
570 | }; | ||
571 | |||
572 | systemd.mounts = [ | ||
573 | { | ||
574 | where = "/media"; | ||
575 | what = "\\\\odin.asgard.yggdrasil\\media"; | ||
576 | type = "cifs"; | ||
577 | options = lib.concatStringsSep "," | ||
578 | [ "guest" | ||
579 | ]; | ||
580 | } | ||
581 | ]; | ||
582 | |||
583 | systemd.automounts = [ | ||
584 | { | ||
585 | where = "/media"; | ||
586 | automountConfig = { | ||
587 | TimeoutIdleSec = "5min"; | ||
588 | }; | ||
589 | } | ||
590 | ]; | ||
559 | } | 591 | } |
560 | 592 | ||
@@ -220,7 +220,7 @@ | |||
220 | }; | 220 | }; |
221 | }; | 221 | }; |
222 | extraConfig = '' | 222 | extraConfig = '' |
223 | domain master = true | 223 | domain master = yes |
224 | workgroup = ASGARD | 224 | workgroup = ASGARD |
225 | load printers = no | 225 | load printers = no |
226 | printing = bsd | 226 | printing = bsd |
@@ -248,6 +248,10 @@ | |||
248 | "upperdir=/home/mherold/.eos.upper" | 248 | "upperdir=/home/mherold/.eos.upper" |
249 | "workdir=/home/mherold/.eos.work" | 249 | "workdir=/home/mherold/.eos.work" |
250 | ]; | 250 | ]; |
251 | |||
252 | unitConfig = { | ||
253 | RequiresMountsFor = [ "/srv/eos.lower" "/home/mherold/.eos.upper" "/home/mherold/.eos.work" ]; | ||
254 | }; | ||
251 | } | 255 | } |
252 | ]; | 256 | ]; |
253 | 257 | ||