🎉 add samba

This commit is contained in:
Chris Cochrun 2023-05-18 16:21:16 -05:00
parent fa6a780486
commit e14acbc3c6

View file

@ -60,6 +60,32 @@
virtualisation.docker.enableNvidia = true;
services.samba = {
enable = true;
extraConfig = ''
workgroup = WORKGROUP
server string = smbnix
netbios name = smbnix
security = user
#use sendfile = yes
#max protocol = smb2
# note: localhost is the ipv6 localhost ::1
hosts allow = 172.16.1.201 127.0.0.1 localhost
hosts deny = 0.0.0.0/0
guest account = nobody
map to guest = bad user
'';
shares = {
public = {
path = "/storage/share";
"read only" = false;
browsable = true;
"guest ok" = true;
comment = "Share";
};
};
};
# CADDY
services.caddy = {
enable = true;