diff --git a/nixos/desktop/printing/default.nix b/nixos/desktop/printing/default.nix index d232a32..cfafb2c 100644 --- a/nixos/desktop/printing/default.nix +++ b/nixos/desktop/printing/default.nix @@ -1,6 +1,14 @@ { inputs, lib, config, pkgs, ... }: { # Enable CUPS to print documents. services.printing.enable = true; + + # Auto-detect network printers + services.avahi = { + enable = true; + nssmdns4 = true; + openFirewall = true; + }; + services.printing.drivers = [ (pkgs.writeTextDir "share/cups/model/kyocera_fs-1300d.ppd" (builtins.readFile ../../../files/kyocera_fs-1300d.ppd)) ];