From a13d579c9b284e29d863e40db644bfd3c20db103 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 15 Jun 2021 15:18:14 +0800 Subject: [PATCH] rpi-server: fix cups startup --- nixops/rpi-server.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nixops/rpi-server.nix b/nixops/rpi-server.nix index 202a7e30..728f5067 100644 --- a/nixops/rpi-server.nix +++ b/nixops/rpi-server.nix @@ -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 ];