nixos/modules/system/avahi/default.nix

30 lines
472 B
Nix
Raw Normal View History

2022-12-25 12:02:43 +01:00
# avahi related settings
2024-07-28 21:08:02 +02:00
{
config,
lib,
options,
...
}:
2022-12-25 12:02:43 +01:00
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;
2024-06-01 18:41:58 +02:00
nssmdns4 = true;
nssmdns6 = true;
2022-12-25 12:02:43 +01:00
publish = {
enable = true;
addresses = true;
workstation = true;
userServices = true;
};
};
};
}