mirror of
https://github.com/ellmau/nixos.git
synced 2025-12-19 09:29:36 +01:00
printer stuff for TUD
This commit is contained in:
parent
1e34658864
commit
a07ba863d4
@ -2,6 +2,7 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
"${builtins.fetchGit { url = "https://github.com/NixOS/nixos-hardware.git"; }}/dell/xps/13-7390"
|
"${builtins.fetchGit { url = "https://github.com/NixOS/nixos-hardware.git"; }}/dell/xps/13-7390"
|
||||||
|
./printer.nix
|
||||||
];
|
];
|
||||||
networking.hostName = "stel-xps"; # define the hostname
|
networking.hostName = "stel-xps"; # define the hostname
|
||||||
|
|
||||||
|
|||||||
3056
machine/stel-xps/ppds/Ricoh/ricoh-mp-c307.ppd
Normal file
3056
machine/stel-xps/ppds/Ricoh/ricoh-mp-c307.ppd
Normal file
File diff suppressed because it is too large
Load Diff
70
machine/stel-xps/printer.nix
Normal file
70
machine/stel-xps/printer.nix
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
{ config, pkgs, ...}:
|
||||||
|
{
|
||||||
|
|
||||||
|
services.printing.drivers = with pkgs; [
|
||||||
|
foomatic-filters
|
||||||
|
gutenprint
|
||||||
|
hplip
|
||||||
|
];
|
||||||
|
|
||||||
|
hardware.printers.ensurePrinters = [
|
||||||
|
{
|
||||||
|
name = "hpm605";
|
||||||
|
location = "APB/3014";
|
||||||
|
description = "HP Laserjet Enterprise M605DN";
|
||||||
|
deviceUri = "hp:/net/HP_LaserJet_M605?hostname=hpm605.tcs.inf.tu-dresden.de";
|
||||||
|
model = "HP/hp-laserjet_m604_m605_m606-ps.ppd.gz";
|
||||||
|
ppdOptions = {
|
||||||
|
Collate = "True";
|
||||||
|
HPOption_Duplexer = "True";
|
||||||
|
HPOption_Tray4 = "HP500SheetInputTray";
|
||||||
|
HPOption_Tray3 = "HP500SheetInputTray";
|
||||||
|
MediaType = "Recycled";
|
||||||
|
Duplex = "DuplexNoTumble";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "ricoh";
|
||||||
|
location = "APB/3014";
|
||||||
|
description = "Ricoh SP 4510DN";
|
||||||
|
deviceUri = "socket://ricoh.tcs.inf.tu-dresden.de";
|
||||||
|
model = "Ricoh/ricoh-sp-4510dn.ppd";
|
||||||
|
ppdOptions = {
|
||||||
|
OptionTray = "2Cassette";
|
||||||
|
PageSize = "A4";
|
||||||
|
InputSlot = "3Tray";
|
||||||
|
Duplex = "none";
|
||||||
|
RIPaperPolicy = "NearestSizeAdjust";
|
||||||
|
pdftops-render-default = "pdftocairo";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "ricohcolor";
|
||||||
|
location = "APB/3014";
|
||||||
|
description = "Ricoh Alficio MP C307";
|
||||||
|
deviceUri = "socket://color.tcs.inf.tu-dresden.de";
|
||||||
|
model = "Ricoh/ricoh-mp-c307.ppd";
|
||||||
|
ppdOptions = {
|
||||||
|
media = "A4";
|
||||||
|
OptionTray = "1Cassette";
|
||||||
|
RIPostScript = "Adobe";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "A4";
|
||||||
|
location = "APB/3014";
|
||||||
|
description = "HP Laserjet 9040";
|
||||||
|
deviceUri = "socket://a4.tcs.inf.tu-dresden.de";
|
||||||
|
model = "HP/hp-laserjet_9040-ps.ppd.gz";
|
||||||
|
ppdOptions = {
|
||||||
|
PageSize = "A4";
|
||||||
|
HPOption_Tray1 = "True";
|
||||||
|
HPOption_Duplexer = "True";
|
||||||
|
InstalledMemory = "128-255MB";
|
||||||
|
MediaType = "Plain";
|
||||||
|
Duplex = "DuplexNoTumble";
|
||||||
|
Collate = "True";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user