nixos/modules/system/avahi/default.nix
2025-09-21 18:40:36 +02:00

29 lines
466 B
Nix

# avahi related settings
{
config,
lib,
options,
...
}:
let
cfg = config.my.system.avahi;
in
{
options.my.system.avahi = {
enable = lib.mkEnableOption "avahi configuration";
};
config = lib.mkIf cfg.enable {
services.avahi = {
enable = true;
nssmdns4 = true;
nssmdns6 = true;
publish = {
enable = true;
addresses = true;
workstation = true;
userServices = true;
};
};
};
}