From 0e4a5fb0b67bfc45be4ea9efd5ff51deb9f10ea4 Mon Sep 17 00:00:00 2001 From: Adrian Gunnar Lauterer Date: Wed, 10 Apr 2024 16:46:02 +0200 Subject: [PATCH] for real this time smb i hope --- services/smb.nix | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/services/smb.nix b/services/smb.nix index f65a758..c0db4ea 100644 --- a/services/smb.nix +++ b/services/smb.nix @@ -8,14 +8,14 @@ services.samba = { openFirewall = true; extraConfig = '' workgroup = WORKGROUP - server string = smbnix - netbios name = smbnix + server string = galadriel + netbios name = galadriel security = user #use sendfile = yes #max protocol = smb2 # note: localhost is the ipv6 localhost ::1 - hosts allow = 192.168.1.0/24 127.0.0.1 localhost 100.0.0.0/8 - # hosts deny = 0.0.0.0/0 + hosts allow = 192.168.1. 127.0.0.1 localhost 100. + hosts deny = 0.0.0.0/0 guest account = nobody map to guest = bad user ''; @@ -30,20 +30,12 @@ services.samba = { # "force user" = "username"; # "force group" = "groupname"; # }; - Main = { - path = "/Main"; + Backup = { + path = "/Main/Backup"; "valid users" = "gunalx"; "force user" = "gunalx"; "force group" = "gunalx"; - - public = "no"; browseable = "yes"; - writeable = "yes"; - - "fruit:aapl" = "yes"; - "fruit:time machine" = "yes"; - "vfs objects" = "catia fruit streams_xattr"; - "read only" = "no"; "guest ok" = "no"; "create mask" = "0644";