diff --git a/machine/stel-xps/ppds/Ricoh/ricoh-sp-4510d.ppd b/machine/stel-xps/ppds/Ricoh/ricoh-sp-4510dn.ppd similarity index 100% rename from machine/stel-xps/ppds/Ricoh/ricoh-sp-4510d.ppd rename to machine/stel-xps/ppds/Ricoh/ricoh-sp-4510dn.ppd diff --git a/machine/stel-xps/printer.nix b/machine/stel-xps/printer.nix index e39d500..2c7cc6d 100644 --- a/machine/stel-xps/printer.nix +++ b/machine/stel-xps/printer.nix @@ -1,10 +1,27 @@ { config, pkgs, ...}: -{ +let + ppd-local = pkgs.stdenv.mkDerivation rec { + pname = "local-ppds"; + version = "2021-07-04"; + + src = ./ppds; + + phases = [ "unpackPhase" "installPhase" ]; + + installPhase = '' + mkdir -p $out/share/cups/model/ + cp -R Ricoh $out/share/cups/model + ''; + }; +in +{ services.printing.drivers = with pkgs; [ foomatic-filters gutenprint hplip + ] ++ [ + ppd-local ]; hardware.printers.ensurePrinters = [