{ services.samba = { enable = true; openFirewall = true; settings = { global = { "workgroup" = "WORKGROUP"; "server string" = "smbnix"; "security" = "user"; "interfaces" = "lo eno1 tailscale0"; "hosts allow" = "192.168.132.0/24 100.64.0.0/10 127.0.0.1 localhost"; "hosts deny" = "0.0.0.0/0"; "guest account" = "nobody"; }; "Music" = { "path" = "/media/music"; "browseable" = "yes"; "read only" = "no"; "guest ok" = "no"; "valid users" = "user"; }; }; }; }