diff options
Diffstat (limited to 'hel.nix')
-rw-r--r-- | hel.nix | 32 |
1 files changed, 32 insertions, 0 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 | ||