nix-config/modules/nixos/printing/default.nix
larstvei 8b065ced4e Add the printer at work
This doesn't look great, but it works. Maybe I'll try to improve it later.
2026-02-03 00:37:58 +01:00

25 lines
582 B
Nix

{ pkgs, ... }:
{
services.printing = {
enable = true;
drivers = [ pkgs.ghostscript ];
};
hardware.printers = {
ensureDefaultPrinter = "UiO-Print-Ricoh";
ensurePrinters = [
{
name = "UiO-Print-Ricoh";
location = "https://print.uio.no";
deviceUri = "ipps://mobilityprint.uio.no:9164/printers/UiO-Print";
model = "drv:///sample.drv/generic.ppd";
ppdOptions = {
"PageSize" = "A4";
"Duplex" = "DuplexNoTumble";
"auth-info-required" = "username,password";
};
}
];
};
}