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.
This commit is contained in:
rnhmjoj
2022-12-07 15:57:44 +01:00
parent 47d9e7d3d7
commit 43cb1eb2f9
+1 -4
View File
@@ -395,10 +395,7 @@ in
''}
'';
serviceConfig = {
PrivateTmp = true;
RuntimeDirectory = [ "cups" ];
};
serviceConfig.PrivateTmp = true;
};
systemd.services.cups-browsed = mkIf avahiEnabled