From 11a80a7c44d1d69726daf4bb6ee3471ea1d68483 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Fri, 8 Apr 2022 16:48:31 -0700 Subject: services: add avahi --- modules/services/avahi/default.nix | 14 ++++++++++++++ modules/services/default.nix | 1 + 2 files changed, 15 insertions(+) create mode 100644 modules/services/avahi/default.nix (limited to 'modules') diff --git a/modules/services/avahi/default.nix b/modules/services/avahi/default.nix new file mode 100644 index 0000000..bef6b17 --- /dev/null +++ b/modules/services/avahi/default.nix @@ -0,0 +1,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; + }; +} diff --git a/modules/services/default.nix b/modules/services/default.nix index 38b6a6b..a6219e0 100644 --- a/modules/services/default.nix +++ b/modules/services/default.nix @@ -2,6 +2,7 @@ { imports = [ + ./avahi ./fwupd ./gitea ./gnome -- cgit 1.4.1