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 ++++++++++++++++++++++++++++++++ odin.nix | 6 +++++- 2 files changed, 37 insertions(+), 1 deletion(-) 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"; + }; + } + ]; } diff --git a/odin.nix b/odin.nix index 7d183d87..d092061e 100644 --- a/odin.nix +++ b/odin.nix @@ -220,7 +220,7 @@ }; }; extraConfig = '' - domain master = true + domain master = yes workgroup = ASGARD load printers = no printing = bsd @@ -248,6 +248,10 @@ "upperdir=/home/mherold/.eos.upper" "workdir=/home/mherold/.eos.work" ]; + + unitConfig = { + RequiresMountsFor = [ "/srv/eos.lower" "/home/mherold/.eos.upper" "/home/mherold/.eos.work" ]; + }; } ]; -- cgit v1.2.3