hermes+phoebe: Enable avahi+mdns

For device discovery over local network. Trying this out because ESPHome
is not able to locate wirelessly connected devices for OTA updates.
This commit is contained in:
Payas Relekar 2023-12-25 10:30:53 +05:30
parent 06bcd2b6d8
commit b543e8f5e9
2 changed files with 10 additions and 0 deletions

View file

@ -65,6 +65,7 @@
./modules/fonts.nix
./modules/plasma-desktop.nix
./modules/audio.nix
./modules/dev-common.nix
# Host-specific config
./hosts/hermes/configuration.nix
@ -97,6 +98,7 @@
./modules/fonts.nix
./modules/plasma-desktop.nix
./modules/audio.nix
./modules/dev-common.nix
# Host-specific config
nixos-hardware.nixosModules.gpd-micropc

8
modules/dev-common.nix Normal file
View file

@ -0,0 +1,8 @@
{ pkgs, ... }:
{
services.avahi = {
enable = true;
nssmdns = true;
openFirewall = true;
};
}