parent
2c70276d96
commit
d7a7f80aff
@ -126,7 +126,8 @@ in
|
||||
{ description = "CUPS Printing Daemon";
|
||||
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
after = [ "network-interfaces.target" ];
|
||||
wants = [ "network.target" ];
|
||||
after = [ "network.target" ];
|
||||
|
||||
path = [ cups ];
|
||||
|
||||
@ -145,7 +146,7 @@ in
|
||||
services.printing.drivers =
|
||||
[ pkgs.cups pkgs.cups_pdf_filter pkgs.ghostscript additionalBackends
|
||||
pkgs.perl pkgs.coreutils pkgs.gnused pkgs.bc pkgs.gawk pkgs.gnugrep
|
||||
];
|
||||
];
|
||||
|
||||
services.printing.cupsdConf =
|
||||
''
|
||||
|
@ -31,9 +31,7 @@ import ./make-test.nix ({pkgs, ... }: {
|
||||
|
||||
# Make sure that cups is up on both sides.
|
||||
$server->waitForUnit("cupsd.service");
|
||||
$server->waitForUnit("network.target");
|
||||
$client->waitForUnit("cupsd.service");
|
||||
$client->waitForUnit("network.target");
|
||||
$client->succeed("lpstat -r") =~ /scheduler is running/ or die;
|
||||
$client->succeed("lpstat -H") =~ "/var/run/cups/cups.sock" or die;
|
||||
$client->succeed("curl --fail http://localhost:631/");
|
||||
|
Loading…
Reference in New Issue
Block a user