From 2e6821f878ca8e0cffedd47e2361a1b4da0eac08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jalil=20David=20Salam=C3=A9=20Messina?= Date: Sun, 14 Apr 2024 20:44:37 +0200 Subject: [PATCH] feat(printing): enable printer autodiscovery Only if printing itself is enabled (which is enabled for all my computers, but not my servers). --- system/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/system/default.nix b/system/default.nix index 2377042..02a515c 100644 --- a/system/default.nix +++ b/system/default.nix @@ -73,6 +73,13 @@ in builtins.attrNames keysFromGithub ); + # Enable printer autodiscovery if printing is enabled + services.avahi = { + enable = config.services.printing.enable; + nssmdns4 = true; + openFirewall = true; + }; + # Default shell programs.zsh.enable = true; users.defaultUserShell = pkgs.zsh;