From 3aabaf251bb2c80d3ce42f345270e37886856424 Mon Sep 17 00:00:00 2001 From: Jan Grosser Date: Wed, 7 Aug 2024 21:43:30 +0200 Subject: [PATCH] Enabled printer discovery and moved Canon drivers to right place See: https://wiki.nixos.org/wiki/Printing --- hosts/p14s/configuration.nix | 10 ++++++++++ hosts/p14s/home.nix | 3 --- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/hosts/p14s/configuration.nix b/hosts/p14s/configuration.nix index 34753e3..73c93c1 100644 --- a/hosts/p14s/configuration.nix +++ b/hosts/p14s/configuration.nix @@ -66,6 +66,16 @@ # Enable CUPS to print documents. services.printing.enable = true; + services.printing.drivers = with pkgs; [ + cups-bjnp # CUPS back-end for Canon printers + ]; + + # Enable autodiscovery of network printers + services.avahi = { + enable = true; + nssmdns4 = true; + openFirewall = true; + }; # Enable sound with pipewire. #sound.enable = true; diff --git a/hosts/p14s/home.nix b/hosts/p14s/home.nix index d9af643..294e5d2 100644 --- a/hosts/p14s/home.nix +++ b/hosts/p14s/home.nix @@ -60,9 +60,6 @@ wireguard-tools nextcloud-client - # Printing - cups-bjnp # CUPS backend for Canon printers - # Internet firefox #ladybird