blob: 9247146671d79365755e7fdf527dfdb7f22792d0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
{
config,
lib,
pkgs,
...
}: let
cfg = config.sils.printing;
in {
options.sils.printing.enable = lib.mkEnableOption "printing configuration";
config = lib.mkIf cfg.enable {
services = {
printing = {
enable = true;
startWhenNeeded = true;
webInterface = true;
stateless = true;
drivers = with pkgs; [epson-escpr epson-escpr2 hplip];
};
avahi = {
enable = true;
nssmdns4 = true;
nssmdns6 = true;
openFirewall = true;
};
};
hardware.printers = {
ensureDefaultPrinter = "EPSON_ET-2720_Series";
ensurePrinters = [
{
name = "EPSON_ET-2720_Series";
description = "EPSON ET-2720 Series";
model = "epson-inkjet-printer-escpr/Epson-ET-2720_Series-epson-escpr-en.ppd";
location = "Home Network";
deviceUri = "dnssd://EPSON%20ET-2720%20Series._ipp._tcp.local/?uuid=cfe92100-67c4-11d4-a45f-e0bb9edcdbb9";
ppdOptions = {
PageSize = "A4";
};
}
];
};
};
}
|