summary refs log tree commit diff
path: root/nixos/modules/services/printing/cupsd.nix
diff options
context:
space:
mode:
authorThomas Strobel <ts468@cam.ac.uk>2015-12-21 17:31:09 +0100
committerThomas Strobel <ts468@cam.ac.uk>2015-12-21 18:20:52 +0100
commit2b9b9dc611e10fa6d800970223ed87cf66ee3819 (patch)
tree869293bbfeaf292bb35e9ae9100874b13532d1b9 /nixos/modules/services/printing/cupsd.nix
parentcdd7310a503481e3c40266be45b6b8256d95ecbd (diff)
downloadnixpkgs-2b9b9dc611e10fa6d800970223ed87cf66ee3819.tar
nixpkgs-2b9b9dc611e10fa6d800970223ed87cf66ee3819.tar.gz
nixpkgs-2b9b9dc611e10fa6d800970223ed87cf66ee3819.tar.bz2
nixpkgs-2b9b9dc611e10fa6d800970223ed87cf66ee3819.tar.lz
nixpkgs-2b9b9dc611e10fa6d800970223ed87cf66ee3819.tar.xz
nixpkgs-2b9b9dc611e10fa6d800970223ed87cf66ee3819.tar.zst
nixpkgs-2b9b9dc611e10fa6d800970223ed87cf66ee3819.zip
nixos cups-browsed: better link to avahi-daemon
Link cups browsed daemon to reload or exit with the avahi-daemon.
Diffstat (limited to 'nixos/modules/services/printing/cupsd.nix')
-rw-r--r--nixos/modules/services/printing/cupsd.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/services/printing/cupsd.nix b/nixos/modules/services/printing/cupsd.nix
index 69c76cf97cf..0fe25b66da0 100644
--- a/nixos/modules/services/printing/cupsd.nix
+++ b/nixos/modules/services/printing/cupsd.nix
@@ -247,6 +247,8 @@ in
 
         wantedBy = [ "multi-user.target" ];
         wants = [ "cups.service" "avahi-daemon.service" ];
+        bindsTo = [ "cups.service" "avahi-daemon.service" ];
+        partOf = [ "cups.service" "avahi-daemon.service" ];
         after = [ "cups.service" "avahi-daemon.service" ];
 
         path = [ cups ];