1
0
Fork 0

rpi-server: fix cups startup

This commit is contained in:
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; services.printing.defaultShared = true;
hardware.sane.enable = true; hardware.sane.enable = true;
hardware.sane.extraBackends = [ pkgs.hplip ]; 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.allowedTCPPorts = [ 631 ];
networking.firewall.interfaces.wlan0.allowedUDPPorts = [ 53 67 ]; networking.firewall.interfaces.wlan0.allowedUDPPorts = [ 53 67 ];