Add avahi for samba shares

This commit is contained in:
Chris Dombroski 2024-05-04 12:59:59 -04:00
parent e31cd29359
commit 0710649286

View file

@ -239,13 +239,35 @@
docker-compose docker-compose
]; ];
services.samba.enable = true; services = {
services.samba.shares = { samba = {
media = { enable = true;
path = "/video-data"; shares = {
browseable = "yes"; media = {
"read only" = "no"; path = "/video-data";
"guest ok" = "yes"; browseable = "yes";
"read only" = "no";
"guest ok" = "yes";
};
};
};
avahi = {
enable = true;
nssmdns = true;
openFirewall = true;
extraServiceFiles = {
smb = ''
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">%h</name>
<service>
<type>_smb._tcp</type>
<port>445</port>
</service>
</service-group>
'';
};
}; };
}; };
services.zfs.autoScrub.enable = true; services.zfs.autoScrub.enable = true;