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:
parent
7cd260f526
commit
98511d6888
@ -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 = [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user