summary refs log tree commit diff
diff options
context:
space:
mode:
authorgeorgewhewell <georgerw@gmail.com>2022-11-22 23:24:29 +0100
committerYt <happysalada@proton.me>2022-11-22 20:48:33 -0500
commit5b8c42f98c59e748201a882ead093fe48efd6a75 (patch)
tree7b8f0a9b1a494c533de3479265c25aa99b07fe40
parentdc7783ece2224cc38b725551e903af65633fa6b3 (diff)
downloadnixpkgs-5b8c42f98c59e748201a882ead093fe48efd6a75.tar
nixpkgs-5b8c42f98c59e748201a882ead093fe48efd6a75.tar.gz
nixpkgs-5b8c42f98c59e748201a882ead093fe48efd6a75.tar.bz2
nixpkgs-5b8c42f98c59e748201a882ead093fe48efd6a75.tar.lz
nixpkgs-5b8c42f98c59e748201a882ead093fe48efd6a75.tar.xz
nixpkgs-5b8c42f98c59e748201a882ead093fe48efd6a75.tar.zst
nixpkgs-5b8c42f98c59e748201a882ead093fe48efd6a75.zip
nixos/lighthouse: add dataDirs to unit ReadWritePaths
-rw-r--r--nixos/modules/services/blockchain/ethereum/lighthouse.nix2
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 db72c62d330..20a4ead689c 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;