summary refs log tree commit diff stats
path: root/system/impermanence
diff options
context:
space:
mode:
authorsils <sils@sils.li>2023-07-26 10:31:04 +0200
committersils <sils@noreply.codeberg.org>2023-07-26 16:44:50 +0000
commita787f311e47f409db4ecb51f919320b988658727 (patch)
treedfb87112fd748bdea59e8fb1d98bceb0fc3843a5 /system/impermanence
parentFix(system/services/etebase-server): Use nginx (diff)
downloadnixos-server-a787f311e47f409db4ecb51f919320b988658727.tar.gz
nixos-server-a787f311e47f409db4ecb51f919320b988658727.zip
Fix(system/impermanence): Add permissions
Diffstat (limited to '')
-rw-r--r--system/impermanence/mods/etebase-server.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/system/impermanence/mods/etebase-server.nix b/system/impermanence/mods/etebase-server.nix
index b2b32db..cfe5a39 100644
--- a/system/impermanence/mods/etebase-server.nix
+++ b/system/impermanence/mods/etebase-server.nix
@@ -1,5 +1,10 @@
 {...}: {
   environment.persistence."/srv".directories = [
-    "/var/lib/etebase-server"
+    {
+      directory = "/var/lib/etebase-server";
+      user = "etebase-server";
+      group = "etebase-server";
+      mode = "0700";
+    }
   ];
 }