cups-browsed: Only enable if avahi is enabled

This gets rid of

  systemd[1]: Cannot add dependency job for unit avahi-daemon.service, ignoring: Unit avahi-daemon.service failed to load: No such file or directory.
This commit is contained in:
Eelco Dolstra 2015-08-04 16:40:02 +02:00
parent a75c725fd4
commit c9e46da86b

View File

@ -230,8 +230,8 @@ in
];
};
systemd.services.cups-browsed =
{ description = "Make remote CUPS printers available locally";
systemd.services.cups-browsed = mkIf config.services.avahi.enable
{ description = "CUPS Remote Printer Discovery";
wantedBy = [ "multi-user.target" ];
wants = [ "cups.service" "avahi-daemon.service" ];