2024-09-09 11:41:10 +01:00
|
|
|
{pkgs, ...}: {
|
2024-07-19 13:09:20 +01:00
|
|
|
services = {
|
2024-09-09 11:41:10 +01:00
|
|
|
udev.packages = [pkgs.sane-airscan];
|
2024-07-19 13:09:20 +01:00
|
|
|
printing = {
|
|
|
|
enable = true;
|
2024-09-09 11:41:10 +01:00
|
|
|
drivers = [pkgs.gutenprint pkgs.hplip];
|
2024-07-19 13:09:20 +01:00
|
|
|
};
|
|
|
|
avahi = {
|
|
|
|
enable = true;
|
|
|
|
nssmdns4 = true;
|
|
|
|
openFirewall = true;
|
|
|
|
};
|
|
|
|
};
|
2024-09-09 11:41:10 +01:00
|
|
|
|
|
|
|
hardware = {
|
|
|
|
sane = {
|
|
|
|
enable = true;
|
|
|
|
extraBackends = [pkgs.sane-airscan];
|
|
|
|
netConf = "10.0.10.2";
|
|
|
|
};
|
|
|
|
printers = {
|
|
|
|
ensurePrinters = [
|
|
|
|
{
|
|
|
|
name = "HP_ENVY_6000";
|
|
|
|
description = "Network printer hosted on bob";
|
|
|
|
location = "bob";
|
|
|
|
deviceUri = "ipp://bob/printers/HP_ENVY_6000_series";
|
|
|
|
model = "everywhere";
|
|
|
|
ppdOptions = {
|
|
|
|
PageSize = "A4";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2024-07-19 13:09:20 +01:00
|
|
|
};
|
|
|
|
}
|