diff options
author | Franck Cuny <franck@fcuny.net> | 2022-04-08 16:48:31 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-04-08 16:48:31 -0700 |
commit | 11a80a7c44d1d69726daf4bb6ee3471ea1d68483 (patch) | |
tree | 27377f35b6a73f9f9040d8ec5567d7b7e91e0112 /modules/services/avahi | |
parent | users: add myself to "cdrom" group (diff) | |
download | world-11a80a7c44d1d69726daf4bb6ee3471ea1d68483.tar.gz |
services: add avahi
Diffstat (limited to 'modules/services/avahi')
-rw-r--r-- | modules/services/avahi/default.nix | 14 |
1 files changed, 14 insertions, 0 deletions
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; + }; +} |