add samba to palatine-hill
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
parent
24f792cfd5
commit
c8432ed61b
37
systems/palatine-hill/samba.nix
Normal file
37
systems/palatine-hill/samba.nix
Normal file
@ -0,0 +1,37 @@
|
||||
{ ... }:
|
||||
{
|
||||
services.samba = {
|
||||
enable = true;
|
||||
securityType = "user";
|
||||
openFirewall = true;
|
||||
settings = {
|
||||
global = {
|
||||
"workgroup" = "WORKGROUP";
|
||||
"server string" = "palatine-hill";
|
||||
"netbios name" = "palatine-hill";
|
||||
"security" = "user";
|
||||
#"use sendfile" = "yes";
|
||||
#"max protocol" = "smb2";
|
||||
# note: localhost is the ipv6 localhost ::1
|
||||
"hosts allow" = "192.168.76. 127.0.0.1 localhost";
|
||||
"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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user