From cdee0d6bc9e432375ab937ee721d9b279b4d20b4 Mon Sep 17 00:00:00 2001 From: MoritzBoehme Date: Sun, 9 Jan 2022 14:10:31 +0100 Subject: [PATCH] :rocket: enable avahi based on printing service --- modules/services/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/services/default.nix b/modules/services/default.nix index d6fc2a4..e5aace4 100644 --- a/modules/services/default.nix +++ b/modules/services/default.nix @@ -11,11 +11,11 @@ ]; services = { - avahi = { printing = { enable = true; drivers = with pkgs; [ epson-escpr2 epson-escpr ]; }; + avahi = lib.mkIf config.services.printing.enable { enable = true; nssmdns = true; };