From 98511d6888fd33ac4f27bd8cc746673cfa59f488 Mon Sep 17 00:00:00 2001 From: Stefan Ellmauthaler Date: Fri, 29 Oct 2021 15:07:19 +0200 Subject: [PATCH] fixed printers at TU Dresden Signed-off-by: Stefan Ellmauthaler --- ...ricoh-sp-4510d.ppd => ricoh-sp-4510dn.ppd} | 0 machine/stel-xps/printer.nix | 19 ++++++++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) rename machine/stel-xps/ppds/Ricoh/{ricoh-sp-4510d.ppd => ricoh-sp-4510dn.ppd} (100%) 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 = [