From e45573c8a6f639f77f7473d2c49dc07e959b0c8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Tue, 12 Sep 2023 22:55:17 +0300 Subject: [PATCH] fix samba config works! --- modules/services/jakstpub/default.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/modules/services/jakstpub/default.nix b/modules/services/jakstpub/default.nix index 7caa9b7..f0dc55d 100644 --- a/modules/services/jakstpub/default.nix +++ b/modules/services/jakstpub/default.nix @@ -16,25 +16,26 @@ config = with config.mj.services.jakstpub; lib.mkIf enable { services.samba = { + # https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Standalone_Server enable = true; securityType = "user"; enableNmbd = true; enableWinbindd = true; extraConfig = '' - workgroup = WORKGROUP - netbios name = HOMESERV map to guest = Bad User + log level = 1 + guest account = jakstpub + server role = standalone server ''; shares = { public = { path = dataDir; - writable = "yes"; - printable = "no"; + writeable = "yes"; public = "yes"; "guest ok" = "yes"; "read only" = "no"; - "create mask" = 666; - "directory mask" = 777; + "create mask" = "0666"; + "directory mask" = "0777"; "force user" = "jakstpub"; "force group" = "jakstpub"; };