1
0
mirror of https://github.com/ellmau/nixos.git synced 2025-12-19 09:29:36 +01:00

fixed printers at TU Dresden

Signed-off-by: Stefan Ellmauthaler <stefan.ellmauthaler@tu-dresden.de>
This commit is contained in:
Stefan Ellmauthaler 2021-10-29 15:07:19 +02:00
parent 7cd260f526
commit 98511d6888
2 changed files with 18 additions and 1 deletions

View File

@ -1,10 +1,27 @@
{ config, pkgs, ...}: { 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; [ services.printing.drivers = with pkgs; [
foomatic-filters foomatic-filters
gutenprint gutenprint
hplip hplip
] ++ [
ppd-local
]; ];
hardware.printers.ensurePrinters = [ hardware.printers.ensurePrinters = [