nix-config/hosts/common/optional/printing.nix

26 lines
385 B
Nix
Raw Normal View History

2023-12-24 11:16:59 +01:00
{
config,
lib,
pkgs,
...
}: {
services = {
# Printer Setup
printing.enable = true;
avahi = {
enable = true;
2024-12-02 12:43:57 +01:00
nssmdns4 = true;
nssmdns6 = true;
2023-12-24 11:16:59 +01:00
# for a WiFi printer
openFirewall = true;
};
udev.packages = [pkgs.utsushi];
};
# Scanner Setup
hardware.sane = {
enable = true;
extraBackends = [pkgs.utsushi];
};
}