nixos/lighthouse: add dataDirs to unit ReadWritePaths
This commit is contained in:
parent
dc7783ece2
commit
5b8c42f98c
1 changed files with 2 additions and 0 deletions
|
@ -247,6 +247,7 @@ in {
|
|||
DynamicUser = true;
|
||||
Restart = "on-failure";
|
||||
StateDirectory = "lighthouse-beacon";
|
||||
ReadWritePaths = [ cfg.beacon.dataDir ];
|
||||
NoNewPrivileges = true;
|
||||
PrivateTmp = true;
|
||||
ProtectHome = true;
|
||||
|
@ -287,6 +288,7 @@ in {
|
|||
serviceConfig = {
|
||||
Restart = "on-failure";
|
||||
StateDirectory = "lighthouse-validator";
|
||||
ReadWritePaths = [ cfg.validator.dataDir ];
|
||||
CapabilityBoundingSet = "";
|
||||
DynamicUser = true;
|
||||
NoNewPrivileges = true;
|
||||
|
|
Loading…
Reference in a new issue