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:
parent
db1361d962
commit
db9ba03678
3 changed files with 93 additions and 103 deletions
|
|
@ -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 = { };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue