flocon/system/hardware/printing.nix
Anthony Rodriguez 8fe0604299
repo: huge refactor
Refactored the entire repository structure, as putting everything into
modules was just awkward. Took heavy inspiration from fufexan's
repository, fufexan/dotfiles, as the structure felt much saner.
2024-09-29 23:48:55 +02:00

29 lines
548 B
Nix

{pkgs, ...}: {
services = {
# setup printing service
printing.enable = true;
avahi = {
enable = true;
nssmdns4 = true;
openFirewall = true;
};
printing.drivers = [
pkgs.gutenprint
pkgs.hplip
];
udev.packages = [
pkgs.sane-airscan
pkgs.utsushi
];
};
hardware.sane.enable = true; # enables support for SANE scanners
hardware.sane.extraBackends = [
pkgs.sane-airscan # generic
pkgs.hplip # HP
pkgs.epkowa # Epson
pkgs.utsushi # other printers
];
}