20 lines
405 B
Nix
20 lines
405 B
Nix
{ pkgs, ... }:
|
|
{
|
|
# Enable CUPS to print documents.
|
|
services.avahi = {
|
|
enable = true;
|
|
publish.enable = true;
|
|
publish.userServices = true;
|
|
};
|
|
services.printing = {
|
|
enable = true;
|
|
drivers = [ pkgs.splix ];
|
|
browsing = true;
|
|
listenAddresses = [ "*:631" ];
|
|
allowFrom = [ "all" ];
|
|
defaultShared = true;
|
|
extraConf = ''
|
|
BrowseLocalProtocols all
|
|
'';
|
|
};
|
|
}
|