about summary refs log tree commit diff
path: root/modules/services/avahi/default.nix
blob: bef6b175bcb3763b5d1305735351c3fb5a6f2fce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{ config, pkgs, lib, ... }:
let cfg = config.my.services.avahi;
in {
  options.my.services.avahi = with lib; {
    enable = mkEnableOption "avahi service";
  };

  config = lib.mkIf cfg.enable {
    services.avahi.enable = true;
    # Important to resolve .local domains of printers, otherwise you get an error
    # like  "Impossible to connect to XXX.local: Name or service not known"
    services.avahi.nssmdns = true;
  };
}