mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03: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
1 changed files with 2 additions and 2 deletions
|
@ -230,8 +230,8 @@ in
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services.cups-browsed =
|
systemd.services.cups-browsed = mkIf config.services.avahi.enable
|
||||||
{ description = "Make remote CUPS printers available locally";
|
{ description = "CUPS Remote Printer Discovery";
|
||||||
|
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
wants = [ "cups.service" "avahi-daemon.service" ];
|
wants = [ "cups.service" "avahi-daemon.service" ];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue