nixos-configuration/hosts/printing.nix

20 lines
349 B
Nix
Raw Normal View History

2023-10-22 14:14:39 +02:00
{
config,
pkgs,
lib,
...
}: {
config = {
2023-10-22 14:14:39 +02:00
services = {
# Enable CUPS to print documents.
printing.enable = true;
2024-07-21 14:10:41 +02:00
2023-10-22 14:14:39 +02:00
avahi = {
enable = true; # runs the Avahi daemon
2024-06-21 17:13:58 +02:00
nssmdns4 = true; # enables the mDNS NSS plug-in
2023-10-22 14:14:39 +02:00
openFirewall = true; # opens the firewall for UDP port 5353
};
};
};
}