nixfleet/modules/printing/default.nix

18 lines
413 B
Nix

{ pkgs, ... }:
{
services.avahi = {
enable = true;
# Important to resolve .local domains of printers, otherwise you get an error
# like "Impossible to connect to XXX.local: Name or service not known"
nssmdns4 = true;
openFirewall = true;
};
hardware.sane.enable = true;
services.printing = {
enable = true;
drivers = [
(pkgs.callPackage ./driver.nix { })
];
};
}