25 lines
442 B
Nix
25 lines
442 B
Nix
{ pkgs, ... }:
|
|
{
|
|
services.printing = {
|
|
enable = true;
|
|
drivers = [
|
|
pkgs.foomatic-filters
|
|
pkgs.gutenprint
|
|
];
|
|
browsing = true;
|
|
browsedConf = ''
|
|
BrowseDNSSDSubTypes _cups,_print
|
|
BrowseLocalProtocols all
|
|
BrowseRemoteProtocols all
|
|
CreateIPPPrinterQueues All
|
|
|
|
BrowseProtocols all
|
|
'';
|
|
};
|
|
services.avahi = {
|
|
enable = true;
|
|
openFirewall = true;
|
|
nssmdns = true;
|
|
};
|
|
}
|