nixfiles/modules/ezvahi.nix
2021-03-29 15:22:47 -07:00

23 lines
425 B
Nix

{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.ezvahi;
in
{
options.services.ezvahi.enable = mkEnableOption "Enable simple Avahi config";
config = mkIf cfg.enable {
services.avahi = {
enable = true;
nssmdns = true;
publish = {
enable = true;
addresses = true;
domain = true;
workstation = true;
userServices = true;
};
};
};
}