From 07a573284f4e4c6814570f0baddb92a91a9c7509 Mon Sep 17 00:00:00 2001 From: niten Date: Sun, 21 Jan 2024 09:30:22 -0800 Subject: [PATCH] Save `/var/lib/private` too --- lemmy-container.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lemmy-container.nix b/lemmy-container.nix index 0cf7316..4acfa5c 100644 --- a/lemmy-container.nix +++ b/lemmy-container.nix @@ -10,8 +10,9 @@ let networks = { external_network.internal = false; }; docker-compose.volumes = { - postgres-data = { }; pictrs-data = { }; + postgres-data = { }; + private-data = { }; }; services = { @@ -21,10 +22,12 @@ let volumes = [ "postgres-data:/var/lib/postgres/data" "pictrs-data:/var/lib/pict-rs" + "private-data:/var/lib/private" "${cfg.admin-password-file}:${cfg.admin-password-file}" ]; ports = [ "${toString cfg.port}:80" ]; networks = [ "external_network" ]; + capabilities.SYS_ADMIN = true; }; nixos = { useSystemd = true;