1
0
mirror of https://github.com/ellmau/nixos.git synced 2025-12-19 09:29:36 +01:00
nixos/machines/stel-xps/printer.nix
Stefan Ellmauthaler 1e6e85ae2b
Swayfy (#5)
* switch to sway

* Add greetd pam integration, Add waybar base config

* waybar (multiple modules do not behave as documented)
* nm-applet
* systemd-integration due to "normal" call via greetd

configure mako
adding base commands for nm-applet, blueman-applet

* add kanshi

* swayconfig keybindings for special multimedia keys

* waybar base stylefile + basic modules

* Add more portals to wayland/sway and fix fonts

* Add nixosConfiguration-awareness to the homemanager module

* Add alacritty.nix for home-manager configuration

* Add formatter to flake

* Format with alejandra style

* Add apheleia to emacs

* Add local configuration to use alejandra in this flake with emacs
2022-08-22 16:39:47 +02:00

91 lines
2.2 KiB
Nix

{
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 = [
{
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 = "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";
};
}
{
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";
};
}
];
}