Re-add DynamicUser = true per review discussion

This commit is contained in:
Tom McLaughlin 2022-09-25 05:07:50 -06:00
parent b3de807a6a
commit b744fee880

View File

@ -238,7 +238,11 @@ with lib;
# You may want to set this to `true` if not using coverage tooling on
# compiled code
LockPersonality = false;
# Note that this has some interactions with the User setting; so you may
# want to consult the systemd docs if using both.
DynamicUser = true;
} // (
if cfg.user == null then { DynamicUser = true; } else { User = cfg.user; }
lib.optionalAttrs (cfg.user != null) { User = cfg.user; }
) // cfg.serviceOverrides;
}