2024-10-15 17:46:44 -04:00
|
|
|
{ config, ... }:
|
2024-10-09 03:36:08 -04:00
|
|
|
{
|
2024-09-11 00:59:16 -04:00
|
|
|
services = {
|
|
|
|
samba = {
|
2024-11-13 09:43:47 -05:00
|
|
|
enable = config.system.server.enable;
|
2024-09-11 00:59:16 -04:00
|
|
|
securityType = "user";
|
|
|
|
openFirewall = true;
|
2024-11-02 17:19:40 -04:00
|
|
|
settings = {
|
|
|
|
global = {
|
|
|
|
"workgroup" = "WORKGROUP";
|
|
|
|
"server string" = "JimSMB";
|
|
|
|
"security" = "user";
|
|
|
|
"hosts allow" = "${config.ips.localSpan}. 127.0.0.1 localhost";
|
|
|
|
"hosts deny" = "0.0.0.0/0";
|
|
|
|
"guest account" = "nobody";
|
|
|
|
"map to guest" = "bad user";
|
|
|
|
};
|
2024-09-11 00:59:16 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# Advertise to Windows
|
|
|
|
samba-wsdd = {
|
2024-11-22 20:28:52 -05:00
|
|
|
enable = config.system.server.enable;
|
2024-09-11 00:59:16 -04:00
|
|
|
openFirewall = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|