From 55d2bdc6401c009806bd29a33e5d311291177f6d Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Thu, 11 Jul 2024 13:31:46 +0200 Subject: [PATCH] feat: add printer configurations and services This commit adds configurations for two printers (Brother DCP-L2530DW and Canon MG6300 series) in the nix file. It also enables printing services and resolves DNSSEC degradation. This ensures a more seamless and secure printing experience. --- systems/x86_64-linux/x1/default.nix | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/systems/x86_64-linux/x1/default.nix b/systems/x86_64-linux/x1/default.nix index 3e2aadf..0d53215 100644 --- a/systems/x86_64-linux/x1/default.nix +++ b/systems/x86_64-linux/x1/default.nix @@ -23,6 +23,35 @@ with lib.metacfg; k9s attic-client ]; + services.printing.drivers = with pkgs; [ + metacfg.dcpl2530dw-cups + gutenprintBin + gutenprint + ]; + + services.resolved.enable = true; + services.resolved.dnssec = "allow-downgrade"; + + hardware.printers.ensurePrinters = [ + { + name = "Brother_DCP-L2530DW_series"; + location = "Dach"; + deviceUri = "dnssd://Brother%20DCP-L2530DW%20series._ipp._tcp.local/?uuid=e3248000-80ce-11db-8000-cc6b1e5cd0ea"; + model = "brother-DCPL2530DW-cups-en.ppd"; + ppdOptions = { + PageSize = "A4"; + }; + } + { + name = "Canon_MG6300_series"; + location = "Dach"; + deviceUri = "dnssd://Canon%20MG6300%20series._ipp._tcp.local/?uuid=00000000-0000-1000-8000-2C9EFC9C7BA5"; + model = "gutenprint.5.3://bjc-PIXMA-MG6350/expert"; + ppdOptions = { + PageSize = "A4"; + }; + } + ]; systemd.packages = [ pkgs.cloudflare-warp ]; # for warp-cli