Introduce an intermediate target for systemd services.

Restarting the active targets seems to cause issues on Ubuntu,
restarting certain targets causes the display manager to exit.
This commit is contained in:
r-vdp 2023-04-19 17:49:19 +02:00 committed by Ramses
parent db1361d962
commit db9ba03678
3 changed files with 93 additions and 103 deletions

View file

@ -1,5 +1,13 @@
{ lib, ... }:
{
systemd.services.nginx.serviceConfig.DynamicUser = true;
systemd.services.nginx = {
serviceConfig.DynamicUser = true;
# TODO: can we handle this better?
wantedBy = lib.mkForce [
"system-manager.target"
];
};
# Disable this for now
services.logrotate.settings.nginx = { };