cups: Declaratively add printers
This commit is contained in:
parent
56b5b2f82c
commit
1244a6b5ed
|
@ -1,5 +1,7 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{ lib, pkgs, ... }:
|
||||
let
|
||||
gutenprintWithVersion = "gutenprint.${lib.versions.majorMinor (lib.getVersion pkgs.gutenprint)}";
|
||||
in
|
||||
{
|
||||
services = {
|
||||
printing = {
|
||||
|
@ -10,4 +12,28 @@
|
|||
};
|
||||
avahi.enable = true;
|
||||
};
|
||||
|
||||
hardware.printers.ensurePrinters = [
|
||||
{
|
||||
name = "kanna";
|
||||
deviceUri = "socket://kanna.home.sbruder.de";
|
||||
model = "${gutenprintWithVersion}://kyocera-fs-c5200dn/expert";
|
||||
ppdOptions = {
|
||||
PageSize = "A4";
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "tintenpisser";
|
||||
deviceUri = "ipp://tintenpisser.home.sbruder.de:631/ipp/print";
|
||||
model = "everywhere";
|
||||
ppdOptions = {
|
||||
PageSize = "A4";
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "ich_drucke_nicht";
|
||||
deviceUri = "socket://192.168.178.26";
|
||||
model = "${gutenprintWithVersion}://bjc-TS3100-series/expert";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue