nixos-config/config/services/cups.nix

31 lines
636 B
Nix
Raw Normal View History

2023-03-10 15:22:39 +00:00
{
pkgs,
nixpkgs,
...
}: {
2022-05-25 08:36:03 +00:00
services.printing = {
enable = true;
drivers = with pkgs; [
brlaser
];
browsing = true;
2022-06-12 15:39:15 +00:00
listenAddresses = ["*:631"];
allowFrom = ["all"];
2022-05-25 08:36:03 +00:00
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;
};
2022-06-12 15:39:15 +00:00
networking.firewall.interfaces.wg0.allowedUDPPorts = [631];
networking.firewall.interfaces.wg0.allowedTCPPorts = [631];
2023-03-10 15:22:39 +00:00
imports = ["${nixpkgs}/nixos/modules/services/hardware/sane_extra_backends/brscan4.nix"];
hardware.sane.enable = true;
2022-05-25 08:36:03 +00:00
}