{ ... }: { services.samba = { enable = true; openFirewall = true; settings = { global = { "workgroup" = "WORKGROUP"; "server string" = "smbnix"; "netbios name" = "smbnix"; "security" = "user"; #"use sendfile" = "yes"; #"max protocol" = "smb2"; # note: localhost is the ipv6 localhostĀ ::1 "hosts allow" = "10.10.10. 127.0.0.1 localhost"; "hosts deny" = "0.0.0.0/0"; "guest account" = "ataraxia"; "map to guest" = "bad user"; }; "extra" = { "path" = "/run/media/ataraxia/Extra/Anomaly"; "browseable" = "yes"; "read only" = "no"; "guest ok" = "no"; "create mask" = "0644"; "directory mask" = "0755"; "force user" = "ataraxia"; "force group" = "users"; }; "gamma" = { "path" = "/media/games/Anomaly-Gamma"; "browseable" = "yes"; "read only" = "no"; "guest ok" = "no"; "create mask" = "0644"; "directory mask" = "0755"; "force user" = "ataraxia"; "force group" = "users"; }; }; }; }