From 3f4188a7a7ac4103bdffc08c499dbd3fd12e59cd Mon Sep 17 00:00:00 2001 From: niten Date: Wed, 6 Sep 2023 11:12:10 -0700 Subject: [PATCH] Mastodon needs network --- mastodon-container.nix | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/mastodon-container.nix b/mastodon-container.nix index 7d07a73..791140d 100644 --- a/mastodon-container.nix +++ b/mastodon-container.nix @@ -254,12 +254,18 @@ in { }; }; - 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 - -" - ]; + 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}";