Mastodon needs network

This commit is contained in:
niten 2023-09-06 11:12:10 -07:00
parent da477c357b
commit 3f4188a7a7
1 changed files with 12 additions and 6 deletions

View File

@ -254,12 +254,18 @@ in {
};
};
systemd.tmpfiles.rules = [
systemd = {
tmpfiles.rules = [
"d ${cfg.state-directory}/mastodon-opt 0700 mastodon root - -"
"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 - -"
];
services.arion-mastodon = {
after = [ "network-online.target" ];
requires = [ "network-online.target" ];
};
};
virtualisation.arion.projects.mastodon.settings = let
mkUserMap = uid: "${toString uid}:${toString uid}";