nix-config/hosts/common/optional/printing.nix
2024-12-02 14:21:42 +01:00

25 lines
385 B
Nix

{
config,
lib,
pkgs,
...
}: {
services = {
# Printer Setup
printing.enable = true;
avahi = {
enable = true;
nssmdns4 = true;
nssmdns6 = true;
# for a WiFi printer
openFirewall = true;
};
udev.packages = [pkgs.utsushi];
};
# Scanner Setup
hardware.sane = {
enable = true;
extraBackends = [pkgs.utsushi];
};
}