From 47330b1732b67e7d5fee283685b48fdcafdc91e6 Mon Sep 17 00:00:00 2001 From: Joachim Fasting Date: Sat, 16 Apr 2016 09:07:48 +0200 Subject: [PATCH] cups service: fix missing upstream systemd units caused by output splitting Need to pass `cups.out` to `systemd.packages`, lest we end up with an invalid generated unit containing only directives set in the service module. This patch gives us a valid cups.service unit but, vexingly, does not fix the test failure at NixOS/nixpkgs#14748 --- nixos/modules/services/printing/cupsd.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/printing/cupsd.nix b/nixos/modules/services/printing/cupsd.nix index 29166be2399b..e4c96c24e64b 100644 --- a/nixos/modules/services/printing/cupsd.nix +++ b/nixos/modules/services/printing/cupsd.nix @@ -277,7 +277,7 @@ in # gets loaded, and then cups cannot access the printers. boot.blacklistedKernelModules = [ "usblp" ]; - systemd.packages = [ cups ]; + systemd.packages = [ cups.out ]; systemd.services.cups = { wantedBy = [ "multi-user.target" ];