29 lines
564 B
Nix
29 lines
564 B
Nix
{ pkgs, ... }:
|
|
{
|
|
services = {
|
|
printing = {
|
|
enable = true;
|
|
drivers = [ pkgs.gutenprint pkgs.hplip ];
|
|
};
|
|
avahi = {
|
|
enable = true;
|
|
nssmdns4 = true;
|
|
openFirewall = true;
|
|
};
|
|
};
|
|
hardware.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";
|
|
};
|
|
}
|
|
];
|
|
};
|
|
}
|