From 0710649286a542fdcf3dcd3a71f9ddee79f9c21d Mon Sep 17 00:00:00 2001 From: Chris Dombroski Date: Sat, 4 May 2024 12:59:59 -0400 Subject: [PATCH] Add avahi for samba shares --- systems/zeus/configuration.nix | 36 +++++++++++++++++++++++++++------- 1 file changed, 29 insertions(+), 7 deletions(-) diff --git a/systems/zeus/configuration.nix b/systems/zeus/configuration.nix index bb663af..ef535fb 100644 --- a/systems/zeus/configuration.nix +++ b/systems/zeus/configuration.nix @@ -239,13 +239,35 @@ docker-compose ]; - services.samba.enable = true; - services.samba.shares = { - media = { - path = "/video-data"; - browseable = "yes"; - "read only" = "no"; - "guest ok" = "yes"; + services = { + samba = { + enable = true; + shares = { + media = { + path = "/video-data"; + browseable = "yes"; + "read only" = "no"; + "guest ok" = "yes"; + }; + }; + }; + avahi = { + enable = true; + nssmdns = true; + openFirewall = true; + extraServiceFiles = { + smb = '' + + + + %h + + _smb._tcp + 445 + + + ''; + }; }; }; services.zfs.autoScrub.enable = true;