feat(printing): enable printer autodiscovery

Only if printing itself is enabled (which is enabled  for all my
computers, but not my servers).
This commit is contained in:
Jalil David Salamé Messina 2024-04-14 20:44:37 +02:00
parent ac6daaa379
commit 2e6821f878

View file

@ -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;