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
committerSoispha <soispha@vhack.eu>2023-11-18 19:32:43 +0100
commit560a0fa9abe10e0ad540e25433d42b3effcb16ae (patch)
treeb1e5d4295fb0c5f8818c42f77507e0b681cd7c7b /system/impermanence
parentFix(system/services/etebase-server): Use nginx (diff)
downloadnixos-server-560a0fa9abe10e0ad540e25433d42b3effcb16ae.tar.gz
nixos-server-560a0fa9abe10e0ad540e25433d42b3effcb16ae.zip
Fix(system/impermanence): Add permissions
Diffstat (limited to 'system/impermanence')
-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";
+    }
   ];
 }