diff options
author | georgewhewell <georgerw@gmail.com> | 2022-11-22 23:24:29 +0100 |
---|---|---|
committer | Yt <happysalada@proton.me> | 2022-11-22 20:48:33 -0500 |
commit | 5b8c42f98c59e748201a882ead093fe48efd6a75 (patch) | |
tree | 7b8f0a9b1a494c533de3479265c25aa99b07fe40 /nixos/modules/services/blockchain | |
parent | dc7783ece2224cc38b725551e903af65633fa6b3 (diff) |
nixos/lighthouse: add dataDirs to unit ReadWritePaths
Diffstat (limited to 'nixos/modules/services/blockchain')
-rw-r--r-- | nixos/modules/services/blockchain/ethereum/lighthouse.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/services/blockchain/ethereum/lighthouse.nix b/nixos/modules/services/blockchain/ethereum/lighthouse.nix index db72c62d33044..20a4ead689c8e 100644 --- a/nixos/modules/services/blockchain/ethereum/lighthouse.nix +++ b/nixos/modules/services/blockchain/ethereum/lighthouse.nix @@ -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; |