Enable expanding .local addresses with avahi
diff --git a/modules/dnsmasq.nix b/modules/dnsmasq.nix
index 9835e31..e4831d7 100644
--- a/modules/dnsmasq.nix
+++ b/modules/dnsmasq.nix
@@ -8,6 +8,22 @@
server = [ "1.1.1.1" "1.0.0.1" ];
conf-file = config.sops.secrets."dnsmasq-private.conf".path;
};
+ extraConfig = ''
+ local=/local/
+ domain=local
+ expand-hosts
+ '';
+ };
+ avahi = {
+ enable = true;
+ nssmdns = true;
+ ipv4 = true;
+ ipv6 = false;
+ publish = {
+ enable = true;
+ addresses = true;
+ workstation = true;
+ };
};
};