2022-06-12 15:39:15 +00:00
|
|
|
{pkgs, ...}: {
|
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];
|
2022-05-25 08:36:03 +00:00
|
|
|
}
|