From 1b65453049e17fe51d2f1591382e9312ac9cfeb9 Mon Sep 17 00:00:00 2001 From: niten Date: Tue, 25 Jul 2023 18:51:57 -0700 Subject: [PATCH] Ensure directories are created --- mastodon-container.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mastodon-container.nix b/mastodon-container.nix index ed25851..98cdc3e 100644 --- a/mastodon-container.nix +++ b/mastodon-container.nix @@ -89,6 +89,12 @@ in { }; }; + systemd.tmpfiles.rules = [ + "d ${cfg.state-directory}/mastodon 0700 mastodon root - -" + "d ${cfg.state-directory}/postgres 0700 mastodon-postgres root - -" + "d ${cfg.state-directory}/redis 0700 mastodon-redis root - -" + ]; + virtualisation.arion.projects.mastodon.settings = let mkUserMap = uid: "${toString uid}:${toString uid}"; image = { pkgs, ... }: {