nixos/modules/system/avahi/default.nix
2024-06-01 18:41:58 +02:00

24 lines
464 B
Nix

# avahi related settings
{ config, lib, options, ... }:
let
cfg = config.my.system.avahi;
in
{
options.my.system.avahi = with lib; {
enable = 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;
};
};
};
}