nixfleet/modules/printing/default.nix
2024-05-15 16:53:05 +02:00

17 lines
410 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 {})
];
};
}