mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
update samba config for newer nixpkgs
This commit is contained in:
parent
171e331245
commit
f09ab8fab6
@ -2,16 +2,18 @@
|
|||||||
{
|
{
|
||||||
services.samba = {
|
services.samba = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraConfig = ''
|
settings = {
|
||||||
workgroup = WORKGROUP
|
global = {
|
||||||
server string = smbnix
|
"workgroup" = "WORKGROUP";
|
||||||
netbios name = smbnix
|
"server string" = "smbnix";
|
||||||
security = user
|
"netbios name" = "smbnix";
|
||||||
hosts allow = 192.168.3. 192.168.1. 127.0.0.1 localhost
|
"security" = "user";
|
||||||
hosts deny = 0.0.0.0/0
|
"hosts allow" = [ "192.168.3." "192.168.1." "127.0.0.1" "localhost" ];
|
||||||
guest account = nobody
|
"hosts deny" = "0.0.0.0/0";
|
||||||
map to guest = bad user
|
"guest account" = "nobody";
|
||||||
'';
|
"map to guest" = "bad user";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
shares = {
|
shares = {
|
||||||
private = {
|
private = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user