Auto-detect network printers

This commit is contained in:
Johannes Rothe 2024-11-02 18:50:41 +01:00
parent 45b617a6cc
commit 9f4b74ab8c

View File

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