Ensure directories are created

This commit is contained in:
niten 2023-07-25 18:51:57 -07:00
parent d3118da207
commit 1b65453049
1 changed files with 6 additions and 0 deletions

View File

@ -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, ... }: {