mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 07:00:43 +00:00
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:
parent
a75c725fd4
commit
c9e46da86b
|
@ -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" ];
|
||||
|
|
Loading…
Reference in a new issue