feat: static ergo user
This commit is contained in:
parent
8f14f5da32
commit
636b19160d
1 changed files with 8 additions and 1 deletions
|
|
@ -53,7 +53,14 @@
|
|||
systemd.services.ergochat = {
|
||||
after = [ "acme-finished-cultist.club.target" ];
|
||||
wants = [ "acme-finished-cultist.club.target" ];
|
||||
serviceConfig.SupplementaryGroups = [ "acme" ];
|
||||
serviceConfig = {
|
||||
DynamicUser = lib.mkForce false;
|
||||
User = "ergochat";
|
||||
Group = "ergochat";
|
||||
SupplementaryGroups = [ "acme" ];
|
||||
StateDirectory = "ergo";
|
||||
ReadOnlyPaths = [ "/var/lib/acme/cultist.club" ];
|
||||
};
|
||||
};
|
||||
|
||||
security.acme.certs."cultist.club".postRun = "systemctl restart ergochat.service";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue