rpi-server: fix cups startup

pull/20/head
Sebastien Bourdeauducq 2021-06-15 15:18:14 +08:00
parent c828cf290d
commit a13d579c9b
1 changed files with 4 additions and 0 deletions

View File

@ -134,6 +134,10 @@
services.printing.defaultShared = true;
hardware.sane.enable = true;
hardware.sane.extraBackends = [ pkgs.hplip ];
systemd.sockets.cups.wants = [ "network-setup.service" ];
systemd.sockets.cups.after = [ "network-setup.service" ];
systemd.sockets.cups.wantedBy = [ "multi-user.target" ];
systemd.services.cups.wantedBy = [ "multi-user.target" ];
networking.firewall.allowedTCPPorts = [ 631 ];
networking.firewall.interfaces.wlan0.allowedUDPPorts = [ 53 67 ];