summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-03-14 12:38:57 +0100
committerAlex Auvolat <alex@adnab.me>2023-03-14 12:39:07 +0100
commit9a6c9d8714f4ff92c1c51c32c771acbf53087b2a (patch)
treee6ca45116c1c7d4a7ad31ac14519d507c3926a88
parent53e62918f10d61d8cd5563ca6922f60a8a28278d (diff)
downloaduser-config-9a6c9d8714f4ff92c1c51c32c771acbf53087b2a.tar.gz
user-config-9a6c9d8714f4ff92c1c51c32c771acbf53087b2a.zip
add printer stuff
-rw-r--r--nixos/common.nix3
-rw-r--r--printer/brother-HL1210W-cups-en.ppd280
-rw-r--r--printer/hl1210wcupswrapper-3.0.1-1.i386.rpmbin0 -> 18935 bytes
-rw-r--r--printer/hl1210wlpr-3.0.1-1.i386.rpmbin0 -> 37573 bytes
4 files changed, 282 insertions, 1 deletions
diff --git a/nixos/common.nix b/nixos/common.nix
index 7957225..bc05a0d 100644
--- a/nixos/common.nix
+++ b/nixos/common.nix
@@ -45,7 +45,8 @@ in
services.xserver.xkbOptions = "caps:escape";
# Enable CUPS to print documents.
- # services.printing.enable = true;
+ services.printing.enable = true;
+ #services.printing.drivers = [ pkgs.cups-brother-hl1210w ];
# Enable sound.
sound.enable = true;
diff --git a/printer/brother-HL1210W-cups-en.ppd b/printer/brother-HL1210W-cups-en.ppd
new file mode 100644
index 0000000..f728c20
--- /dev/null
+++ b/printer/brother-HL1210W-cups-en.ppd
@@ -0,0 +1,280 @@
+*PPD-Adobe: "4.3"
+*%================================================
+*% Copyright Brother Industries,Ltd 2006-2014
+*%
+*% "Brother HL-1210W for CUPS"
+*%================================================
+
+*%==== General Information Keywords ========================
+*FormatVersion: "4.3"
+*FileVersion: "1.00"
+*LanguageEncoding: ISOLatin1
+*LanguageVersion: English
+*Manufacturer: "Brother"
+*PCFileName: "HL1210W.PPD"
+*Product: "(Brother HL-1210W series)"
+*cupsVersion: 1.1
+*cupsManualCopies: True
+*cupsModelNumber: 72
+*cupsFilter: "application/vnd.cups-postscript 0 brother_lpdwrapper_HL1210W"
+*cupsFilter: "application/vnd.cups-pdf 0 brother_lpdwrapper_HL1210W"
+*PSVersion: "(3010.106) 3"
+*ModelName: "HL-1210W"
+*NickName: "Brother HL-1210W for CUPS "
+*ShortNickName: "Brother HL-1210W"
+
+*%==== Basic Device Capabilities =============
+*LanguageLevel: "3"
+*TTRasterizer: Type42
+*ColorDevice: False
+*DefaultColorSpace: Gray
+*FileSystem: True
+*?FileSystem:"
+save
+ /devname (%disk0%) def
+ /ret false def
+ 0 1 7{
+ devname exch 48 add 5 exch put
+ devname devstatus {
+ 0 ne {/ret true def}if
+ pop pop pop pop pop pop pop
+ }if
+ }for
+ ret {(True)}{(False)} ifelse = flush
+restore
+"
+*End
+
+*Throughput: "18"
+*FreeVM: "1700000"
+
+
+
+
+*%==== UI Constraints ======================
+
+
+*%==== Media Selection ======================
+
+*OpenUI *PageSize: PickOne
+*OrderDependency: 30 AnySetup *PageSize
+*DefaultPageSize: A4
+*PageSize Letter/Letter: " "
+*PageSize Legal/Legal: " "
+*PageSize Executive/Executive: " "
+*PageSize FanFoldGermanLegal/Folio: " "
+*PageSize A4/A4: " "
+*PageSize A5/A5: " "
+*% *PageSize A6/A6: " "
+*% *PageSize Env10/Com-10: " "
+*% *PageSize EnvMonarch/Monarch: " "
+*% *PageSize EnvDL/DL: " "
+*% *PageSize EnvC5/C5: " "
+*PageSize ISOB5/B5(ISO): " "
+*% *PageSize B5/B5(JIS): " "
+*% *PageSize ISOB6/B6(ISO): " "
+*% *PageSize 4x6/4x6: " "
+*% *PageSize Postcard/Postcard: " "
+*% *PageSize DoublePostcardRotated/Postcard(Double): " "
+*% *PageSize EnvYou4/Y4 Envelop: " "
+*CloseUI: *PageSize
+
+*OpenUI *PageRegion: PickOne
+*OrderDependency: 40 AnySetup *PageRegion
+*DefaultPageRegion: A4
+*PageRegion Letter/Letter: " "
+*PageRegion Legal/Legal: " "
+*PageRegion Executive/Executive: " "
+*PageRegion FanFoldGermanLegal/Folio: " "
+*PageRegion A4/A4: " "
+*PageRegion A5/A5: " "
+*% *PageRegion A6/A6: " "
+*% *PageRegion Env10/Com-10: " "
+*% *PageRegion EnvMonarch/Monarch: " "
+*% *PageRegion EnvDL/DL: " "
+*% *PageRegion EnvC5/C5: " "
+*PageRegion ISOB5/B5(ISO): " "
+*% *PageRegion B5/B5(JIS): " "
+*% *PageRegion ISOB6/B6(ISO): " "
+*% *PageRegion 4x6/4x6: " "
+*% *PageRegion Postcard/Postcard: " "
+*% *PageRegion DoublePostcardRotated/Postcard(Double): " "
+*% *PageRegion EnvYou4/Y4 Envelop: " "
+*CloseUI: *PageRegion
+
+*DefaultImageableArea: A4
+*ImageableArea Letter/Letter: "12 12 600 780"
+*ImageableArea Legal/Legal: "12 12 600 996"
+*ImageableArea Executive/Executive: "12 12 510 744"
+*ImageableArea FanFoldGermanLegal/Folio: "12 12 600 924"
+*ImageableArea A4/A4: "12 12 583 830"
+*ImageableArea A5/A5: "12 12 409 583"
+*% *ImageableArea A6/A6: "12 12 285 408"
+*% *ImageableArea Env10/Com-10: "12 12 285 672"
+*% *ImageableArea EnvMonarch/Monarch: "12 12 267 528"
+*% *ImageableArea EnvDL/DL: "12 12 300 612"
+*% *ImageableArea EnvC5/C5: "12 12 447 637"
+*ImageableArea ISOB5/B5(ISO): "12 12 486 693"
+*% *ImageableArea B5/B5(JIS): "12 12 504 717"
+*% *ImageableArea ISOB6/B6(ISO): "12 12 342 487"
+*% *ImageableArea 4x6/4x6: "12 12 277 419"
+*% *ImageableArea Postcard/Postcard: "12 12 271 408"
+*% *ImageableArea DoublePostcardRotated/Postcard(Double): "12 12 555 408"
+*% *ImageableArea EnvYou4/Y4 Envelop: "12 12 286 654"
+
+*%==== Information About Media Sizes ========
+
+*DefaultPaperDimension: A4
+*PaperDimension Letter/Letter: "612 792"
+*PaperDimension Legal/Legal: "612 1008"
+*PaperDimension Executive/Executive: "522 756"
+*PaperDimension FanFoldGermanLegal/Folio: "612 936"
+*PaperDimension A4/A4: "595 842"
+*PaperDimension A5/A5: "420 595"
+*% *PaperDimension A6/A6: "297 420"
+*% *PaperDimension Env10/Com-10: "297 684"
+*% *PaperDimension EnvMonarch/Monarch: "279 540"
+*% *PaperDimension EnvDL/DL: "312 624"
+*% *PaperDimension EnvC5/C5: "459 649"
+*PaperDimension ISOB5/B5(ISO): "498 705"
+*% *PaperDimension B5/B5(JIS): "516 729"
+*% *PaperDimension ISOB6/B6(ISO): "354 498"
+*% *PaperDimension 4x6/4x6: "289 431"
+*% *PaperDimension Postcard/Postcard: "283 420"
+*% *PaperDimension DoublePostcardRotated/Postcard(Double): "567 420"
+*% *PaperDimension EnvYou4/Y4 Envelop: "298 666"
+
+*%==== 5.13 Media Handling Features ============================
+*OpenUI *BrMediaType/MediaType: PickOne
+*OrderDependency: 28 AnySetup *BrMediaType
+*DefaultBrMediaType: PLAIN
+*BrMediaType PLAIN/Plain Paper: " "
+*BrMediaType RECYCLED/Recycled Paper: " "
+*CloseUI: *BrMediaType
+
+
+*%OpenUI *InputSlot/InputSlot: PickOne
+*%OrderDependency: 29 AnySetup *InputSlot
+*%DefaultInputSlot: MPTRAY
+*%InputSlot MPTRAY/MP Tray: " "
+*%CloseUI: *InputSlot
+
+*RequiresPageRegion All:True
+
+
+
+*%%%%% Resolution and Appearance Control %%%%%
+*OpenUI *Resolution: PickOne
+*OrderDependency: 11 AnySetup *Resolution
+*DefaultResolution: 600dpi
+*Resolution 300dpi: " "
+*Resolution 600dpi: " "
+*Resolution 2400x600dpi/HQ1200: " "
+*CloseUI: *Resolution
+
+*OpenUI *TonerSaveMode/Toner Save: PickOne
+*DefaultTonerSaveMode: OFF
+*OrderDependency: 10 AnySetup *TonerSaveMode
+*TonerSaveMode OFF/Off: "statusdict begin false tonersave end"
+*TonerSaveMode ON/On: "statusdict begin true tonersave end"
+*CloseUI: *TonerSaveMode
+
+
+*%==== 5.20 Font Related Keywords ==============================
+*DefaultFont: Courier
+*Font AvantGarde-Book: Standard "(001.006S)" Standard ROM
+*Font AvantGarde-BookOblique: Standard "(001.006S)" Standard ROM
+*Font AvantGarde-Demi: Standard "(001.007S)" Standard ROM
+*Font AvantGarde-DemiOblique: Standard "(001.007S)" Standard ROM
+*Font Bookman-Demi: Standard "(001.004S)" Standard ROM
+*Font Bookman-DemiItalic: Standard "(001.004S)" Standard ROM
+*Font Bookman-Light: Standard "(001.004S)" Standard ROM
+*Font Bookman-LightItalic: Standard "(001.004S)" Standard ROM
+*Font Courier: Standard "(002.004S)" Standard ROM
+*Font Courier-Bold: Standard "(002.004S)" Standard ROM
+*Font Courier-BoldOblique: Standard "(002.004S)" Standard ROM
+*Font Courier-Oblique: Standard "(002.004S)" Standard ROM
+*Font Helvetica: Standard "(001.006S)" Standard ROM
+*Font Helvetica-Bold: Standard "(001.007S)" Standard ROM
+*Font Helvetica-BoldOblique: Standard "(001.007S)" Standard ROM
+*Font Helvetica-Narrow: Standard "(001.006S)" Standard ROM
+*Font Helvetica-Narrow-Bold: Standard "(001.007S)" Standard ROM
+*Font Helvetica-Narrow-BoldOblique: Standard "(001.007S)" Standard ROM
+*Font Helvetica-Narrow-Oblique: Standard "(001.006S)" Standard ROM
+*Font Helvetica-Oblique: Standard "(001.006S)" Standard ROM
+*Font NewCenturySchlbk-Bold: Standard "(001.009S)" Standard ROM
+*Font NewCenturySchlbk-BoldItalic: Standard "(001.007S)" Standard ROM
+*Font NewCenturySchlbk-Italic: Standard "(001.006S)" Standard ROM
+*Font NewCenturySchlbk-Roman: Standard "(001.007S)" Standard ROM
+*Font Palatino-Bold: Standard "(001.005S)" Standard ROM
+*Font Palatino-BoldItalic: Standard "(001.005S)" Standard ROM
+*Font Palatino-Italic: Standard "(001.005S)" Standard ROM
+*Font Palatino-Roman: Standard "(001.005S)" Standard ROM
+*Font Times-Bold: Standard "(001.007S)" Standard ROM
+*Font Times-BoldItalic: Standard "(001.009S)" Standard ROM
+*Font Times-Italic: Standard "(001.007S)" Standard ROM
+*Font Times-Roman: Standard "(001.007S)" Standard ROM
+*Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM
+*Font ZapfDingbats: Special "(001.004S)" Special ROM
+*Font Symbol: Special "(001.007S)" Special ROM
+*Font Alaska: Standard "(001.005)" Standard ROM
+*Font AlaskaExtrabold: Standard "(001.005)" Standard ROM
+*Font AntiqueOakland: Standard "(001.005)" Standard ROM
+*Font AntiqueOakland-Bold: Standard "(001.005)" Standard ROM
+*Font AntiqueOakland-Oblique: Standard "(001.005)" Standard ROM
+*Font ClevelandCondensed: Standard "(001.005)" Standard ROM
+*Font Connecticut: Standard "(001.005)" Standard ROM
+*Font Guatemala-Antique: Standard "(001.005)" Standard ROM
+*Font Guatemala-Bold: Standard "(001.005)" Standard ROM
+*Font Guatemala-Italic: Standard "(001.005)" Standard ROM
+*Font Guatemala-BoldItalic: Standard "(001.005)" Standard ROM
+*Font LetterGothic: Standard "(001.005)" Standard ROM
+*Font LetterGothic-Bold: Standard "(001.005)" Standard ROM
+*Font LetterGothic-Oblique: Standard "(001.005)" Standard ROM
+*Font Maryland: Standard "(001.005)" Standard ROM
+*Font Oklahoma: Standard "(001.005)" Standard ROM
+*Font Oklahoma-Bold: Standard "(001.005)" Standard ROM
+*Font Oklahoma-Oblique: Standard "(001.005)" Standard ROM
+*Font Oklahoma-BoldOblique: Standard "(001.005)" Standard ROM
+*Font Utah: Standard "(001.005)" Standard ROM
+*Font Utah-Bold: Standard "(001.005)" Standard ROM
+*Font Utah-Oblique: Standard "(001.005)" Standard ROM
+*Font Utah-BoldOblique: Standard "(001.005)" Standard ROM
+*Font UtahCondensed: Standard "(001.005)" Standard ROM
+*Font UtahCondensed-Bold: Standard "(001.005)" Standard ROM
+*Font UtahCondensed-Oblique: Standard "(001.004)" Standard ROM
+*Font UtahCondensed-BoldOblique: Standard "(001.005)" Standard ROM
+*Font BermudaScript: Standard "(001.005)" Standard ROM
+*Font Germany: Standard "(001.005)" Standard ROM
+*Font SanDiego: Standard "(001.005)" Standard ROM
+*Font US-Roman: Standard "(001.005)" Standard ROM
+*?FontQuery: "
+save
+count 1 gt
+ {exch dup dup
+ =string cvs (/) print print (:) print
+ FontDirectory exch known
+ {pop(Yes)}
+ {(fonts/)AppendName exch pop mark exch
+ {}=string filenameforall counttomark
+ 0 gt
+ {cleartomark(Yes)}
+ {cleartomark(No)}ifelse
+ }ifelse
+ =
+ }if
+ (*) = flush
+restore
+"
+*End
+*?FontList: "
+save
+ FontDirectory{pop ==}forall
+ (fonts/*)
+ {dup length 6 sub 6 exch getinterval cvn ==
+ }=string filenameforall
+ (*) = flush
+restore
+"
+*End
+
diff --git a/printer/hl1210wcupswrapper-3.0.1-1.i386.rpm b/printer/hl1210wcupswrapper-3.0.1-1.i386.rpm
new file mode 100644
index 0000000..32c3d94
--- /dev/null
+++ b/printer/hl1210wcupswrapper-3.0.1-1.i386.rpm
Binary files differ
diff --git a/printer/hl1210wlpr-3.0.1-1.i386.rpm b/printer/hl1210wlpr-3.0.1-1.i386.rpm
new file mode 100644
index 0000000..475617e
--- /dev/null
+++ b/printer/hl1210wlpr-3.0.1-1.i386.rpm
Binary files differ