From 5d9c165df4404dfa862f1192a67fbd3f35399f98 Mon Sep 17 00:00:00 2001 From: materus Date: Fri, 12 Apr 2024 11:49:25 +0200 Subject: [PATCH] waffentrager: samba change dirs --- configurations/host/waffentrager/services/auth/samba.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configurations/host/waffentrager/services/auth/samba.nix b/configurations/host/waffentrager/services/auth/samba.nix index 6c4bf43..fb18aac 100644 --- a/configurations/host/waffentrager/services/auth/samba.nix +++ b/configurations/host/waffentrager/services/auth/samba.nix @@ -44,6 +44,9 @@ networking.firewall.allowedUDPPorts = [ 135 137 138 389 88 53 123 464]; systemd.tmpfiles.rules = [ "d ${servicePath}/tls/ 0600 root 3000000 -" + "d ${servicePath}/private/ 0600 root 3000000 -" + "d ${servicePath}/lock/ 0600 root 3000000 -" + "d ${servicePath}/cache/ 0600 root 3000000 -" ]; services.samba = { enable = true; @@ -60,6 +63,10 @@ workgroup = ${materusArg.waffentrager.samba.workgroup} idmap_ldb:use rfc2307 = yes ldap server require strong auth = yes + private dir = ${servicePath}/private + lock dir = ${servicePath}/lock + state directory = ${servicePath}/lock + cache directory = ${servicePath}/cache tls enabled = yes tls keyfile = ${servicePath}/tls/key.pem tls certfile = ${servicePath}/tls/fullchain.pem