mirror of
https://github.com/larstvei/nix-config.git
synced 2026-02-06 18:40:12 +00:00
25 lines
582 B
Nix
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";
|
|
};
|
|
}
|
|
];
|
|
};
|
|
}
|