37 lines
754 B
Nix
37 lines
754 B
Nix
{pkgs, ...}: {
|
|
services = {
|
|
udev.packages = [pkgs.sane-airscan];
|
|
printing = {
|
|
enable = true;
|
|
drivers = [pkgs.gutenprint pkgs.hplip];
|
|
};
|
|
avahi = {
|
|
enable = true;
|
|
nssmdns4 = true;
|
|
openFirewall = true;
|
|
};
|
|
};
|
|
|
|
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";
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|