Add avahi for samba shares
This commit is contained in:
parent
e31cd29359
commit
0710649286
1 changed files with 29 additions and 7 deletions
|
@ -239,8 +239,10 @@
|
||||||
docker-compose
|
docker-compose
|
||||||
];
|
];
|
||||||
|
|
||||||
services.samba.enable = true;
|
services = {
|
||||||
services.samba.shares = {
|
samba = {
|
||||||
|
enable = true;
|
||||||
|
shares = {
|
||||||
media = {
|
media = {
|
||||||
path = "/video-data";
|
path = "/video-data";
|
||||||
browseable = "yes";
|
browseable = "yes";
|
||||||
|
@ -248,6 +250,26 @@
|
||||||
"guest ok" = "yes";
|
"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;
|
||||||
services.zfs.zed.settings = {
|
services.zfs.zed.settings = {
|
||||||
ZED_EMAIL_ADDR = [ "root" ];
|
ZED_EMAIL_ADDR = [ "root" ];
|
||||||
|
|
Loading…
Reference in a new issue