From 78c58273bec4798f35b26c64793912200645a792 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Sun, 1 Dec 2024 18:44:39 +0200 Subject: [PATCH] samba: BindPaths separately --- modules/services/jakstpub/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/services/jakstpub/default.nix b/modules/services/jakstpub/default.nix index 05b33dc..1a32939 100644 --- a/modules/services/jakstpub/default.nix +++ b/modules/services/jakstpub/default.nix @@ -61,7 +61,8 @@ in }; public = defaults // { - "path" = cfg.dataDir; + #"path" = cfg.dataDir; + "path" = "/var/run/samba/dataDir"; "writeable" = "yes"; "read only" = "no"; "create mask" = "0664"; @@ -95,6 +96,9 @@ in systemd.services.samba-smbd = { unitConfig.Requires = cfg.requires; + serviceConfig.BindPaths = [ + "${cfg.dataDir}:/var/run/samba/dataDir" + ]; }; mj.services.friendlyport.ports = [