NixOS-Config/modules/system/services/server/fileserver/local/samba/default.nix

28 lines
640 B
Nix
Raw Normal View History

{ 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;
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;
};
};
}