Add the printer at work

This doesn't look great, but it works. Maybe I'll try to improve it later.
This commit is contained in:
larstvei 2026-02-03 00:37:58 +01:00
parent 102c68ff73
commit 8b065ced4e
2 changed files with 25 additions and 0 deletions

View File

@ -3,6 +3,7 @@
imports = [
../fonts
./printing
];
home-manager = {

View File

@ -0,0 +1,24 @@
{ 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";
};
}
];
};
}