mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
nixos/lighthouse: add dataDirs to unit ReadWritePaths
This commit is contained in:
parent
dc7783ece2
commit
5b8c42f98c
@ -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 New Issue
Block a user