From 1179681099b6da88c100d5f2cc9244acaee49f8a Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 30 Apr 2018 14:57:16 +0200 Subject: samba stuff --- hel.nix | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'hel.nix') diff --git a/hel.nix b/hel.nix index cc4698cc..024429f0 100644 --- a/hel.nix +++ b/hel.nix @@ -556,5 +556,37 @@ MemoryHigh = "50%"; MemoryMax = "75%"; }; + + services.samba = { + enable = true; + extraConfig = '' + domain master = no + workgroup = ASGARD + load printers = no + printing = bsd + printcap name = /dev/null + disable spoolss = yes + ''; + }; + + systemd.mounts = [ + { + where = "/media"; + what = "\\\\odin.asgard.yggdrasil\\media"; + type = "cifs"; + options = lib.concatStringsSep "," + [ "guest" + ]; + } + ]; + + systemd.automounts = [ + { + where = "/media"; + automountConfig = { + TimeoutIdleSec = "5min"; + }; + } + ]; } -- cgit v1.2.3