From 43cb1eb2f9b02356f130637dabcdc7fe10ee20fe Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Wed, 30 Nov 2022 16:11:13 +0100 Subject: nixos/cupsd: stop managing /run/cups directory The directory is already set up by cups.socket: managing it with RuntimeDirectory in cups.service is unnecesary and has the unwanted effect that upon stopping cupsd systemd will remove it. This includes the /run/cups/cups.sock socket, so it breaks socket activation. --- nixos/modules/services/printing/cupsd.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'nixos/modules/services/printing') diff --git a/nixos/modules/services/printing/cupsd.nix b/nixos/modules/services/printing/cupsd.nix index ae59dcc226de..009f0fb030f7 100644 --- a/nixos/modules/services/printing/cupsd.nix +++ b/nixos/modules/services/printing/cupsd.nix @@ -395,10 +395,7 @@ in ''} ''; - serviceConfig = { - PrivateTmp = true; - RuntimeDirectory = [ "cups" ]; - }; + serviceConfig.PrivateTmp = true; }; systemd.services.cups-browsed = mkIf avahiEnabled -- cgit 1.4.1