summaryrefslogtreecommitdiffstats
path: root/nixos/modules/services/printing
diff options
context:
space:
mode:
authorrnhmjoj <rnhmjoj@inventati.org>2022-11-30 16:11:13 +0100
committerrnhmjoj <rnhmjoj@inventati.org>2022-12-07 15:57:44 +0100
commit43cb1eb2f9b02356f130637dabcdc7fe10ee20fe (patch)
tree4de1bb5c15135edc1c682328c026eaa269102eca /nixos/modules/services/printing
parent47d9e7d3d7d8ad19e29be1445171726bf7d602b6 (diff)
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.
Diffstat (limited to 'nixos/modules/services/printing')
-rw-r--r--nixos/modules/services/printing/cupsd.nix5
1 files changed, 1 insertions, 4 deletions
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