···124124125125 listenAddresses = mkOption {
126126 type = types.listOf types.str;
127127- default = [ "localhost:631" ];
127127+ default = [ "127.0.0.1:631" ];
128128 example = [ "*:631" ];
129129 description = ''
130130 A list of addresses and ports on which to listen.
···321321 ''}
322322 '';
323323324324- serviceConfig = {
325325- PrivateTmp = true;
326326- RuntimeDirectory = [ "cups" ];
327327- };
324324+ serviceConfig.PrivateTmp = true;
328325 };
329326330327 systemd.services.cups-browsed = mkIf avahiEnabled
+1-3
nixos/tests/printing.nix
···3939 $client->waitForUnit("cups.service");
4040 $client->sleep(10); # wait until cups is fully initialized
4141 $client->succeed("lpstat -r") =~ /scheduler is running/ or die;
4242- # Test that UNIX socket is used for connections.
4343- $client->succeed("lpstat -H") =~ "/var/run/cups/cups.sock" or die;
4444- # Test that HTTP server is available too.
4242+ $client->succeed("lpstat -H") =~ "localhost:631" or die;
4543 $client->succeed("curl --fail http://localhost:631/");
4644 $client->succeed("curl --fail http://server:631/");
4745 $server->fail("curl --fail --connect-timeout 2 http://client:631/");