23 lines
425 B
Nix
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;
|
|
};
|
|
};
|
|
};
|
|
}
|