From 0e05552c1c9d0d0baee4640a5621b7691fd2a1e0 Mon Sep 17 00:00:00 2001 From: Joe Mou Date: Sun, 18 Feb 2024 06:24:29 -0500 Subject: Enable mDNS --- hostnix/elmo/system.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'hostnix') diff --git a/hostnix/elmo/system.nix b/hostnix/elmo/system.nix index 871999d..b8d5682 100644 --- a/hostnix/elmo/system.nix +++ b/hostnix/elmo/system.nix @@ -6,12 +6,21 @@ boot.tmp.useTmpfs = true; + time.timeZone = "America/New_York"; + networking.hostName = "elmo"; networking.domain = "mou.fo"; networking.networkmanager.enable = true; - time.timeZone = "America/New_York"; + services.avahi = { + enable = true; + nssmdns = true; + publish = { + enable = true; + addresses = true; + }; + }; # https://github.com/NixOS/nixpkgs/issues/54707#issuecomment-1132907191 systemd.services.nix-daemon = { -- cgit v1.3.1