nixos-config/config/services/cups.nix

24 lines
505 B
Nix
Raw Normal View History

2022-05-25 08:36:03 +00:00
{ pkgs, ... }: {
services.printing = {
enable = true;
drivers = with pkgs; [
brlaser
];
browsing = true;
listenAddresses = [ "*:631" ];
allowFrom = [ "all" ];
defaultShared = true;
2022-05-25 11:36:37 +00:00
extraConf = ''
ServerAlias *
'';
2022-05-25 08:36:03 +00:00
};
services.avahi = {
enable = true;
publish.enable = true;
publish.userServices = true;
};
networking.firewall.interfaces.wg0.allowedUDPPorts = [ 631 ];
networking.firewall.interfaces.wg0.allowedTCPPorts = [ 631 ];
}