Files
nix-dotfiles/systems/palatine-hill/samba.nix
T

37 lines
872 B
Nix
Raw Normal View History

2024-12-04 18:54:56 -05:00
{ ... }:
{
services.samba = {
enable = true;
openFirewall = true;
settings = {
global = {
2025-05-31 16:18:12 -04:00
security = "user";
2024-12-04 18:54:56 -05:00
"workgroup" = "WORKGROUP";
"server string" = "palatine-hill";
"netbios name" = "palatine-hill";
#"use sendfile" = "yes";
#"max protocol" = "smb2";
# note: localhost is the ipv6 localhost ::1
2025-12-27 22:06:22 -05:00
"hosts allow" = "192.168.76. 127.0.0.1 localhost 192.168.191.";
2024-12-04 18:54:56 -05:00
"hosts deny" = "0.0.0.0/0";
"guest account" = "nobody";
"map to guest" = "bad user";
};
zfs-primary-backups = {
path = "/ZFS/ZFS-primary/backups";
writeable = "yes";
browseable = "yes";
};
};
};
services.samba-wsdd = {
enable = true;
openFirewall = true;
};
networking.firewall.enable = true;
networking.firewall.allowPing = true;
}