nixos/modules/system/avahi/default.nix

24 lines
440 B
Nix
Raw Normal View History

2022-12-25 12:02:43 +01:00
# avahi related settings
2023-11-07 22:00:00 +01: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;
nssmdns = true;
publish = {
enable = true;
addresses = true;
workstation = true;
userServices = true;
};
};
};
}