From d6a79913fad0682121e13ca5a993c5bb560936dc Mon Sep 17 00:00:00 2001 From: Grisha Shipunov Date: Sat, 25 Oct 2025 12:34:42 +0200 Subject: add netowrk printing support --- hosts/toaster/printer.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 hosts/toaster/printer.nix (limited to 'hosts/toaster/printer.nix') diff --git a/hosts/toaster/printer.nix b/hosts/toaster/printer.nix new file mode 100644 index 0000000..385df43 --- /dev/null +++ b/hosts/toaster/printer.nix @@ -0,0 +1,17 @@ +{ pkgs, ... }: +{ + # autodiscovery + services.avahi = { + enable = true; + nssmdns4 = true; + openFirewall = true; + }; + + services.printing = { + enable = true; + drivers = with pkgs; [ + cups-filters + cups-browsed + ]; + }; +} -- cgit v1.3.1