mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 18:04:41 +02:00
24 lines
454 B
Nix
24 lines
454 B
Nix
![]() |
# avahi related settings
|
||
|
{ config, inputs, lib, options, pkgs, ... }:
|
||
|
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;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|