config

NixOS config
Log | Files | Refs | README | LICENSE

commit e45573c8a6f639f77f7473d2c49dc07e959b0c8a (tree)
parent 4f45d605e109cfe954d48fd9bf21e95f6f666551
Author: Motiejus Jakštys <motiejus@jakstys.lt>
Date:   Tue, 12 Sep 2023 22:55:17 +0300

fix samba config

works!

Diffstat:
Mmodules/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 @@ -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"; };