From 56a8c33f9cc742b80b37f8ccf07d048fffb31523 Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Mon, 9 Dec 2024 00:39:01 +0100 Subject: [PATCH] Update peertube requirements --- modules/cloud/authentik/default.nix | 2 ++ nki-personal-do/peertube.nix | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/modules/cloud/authentik/default.nix b/modules/cloud/authentik/default.nix index 40e53a6..74d7f61 100644 --- a/modules/cloud/authentik/default.nix +++ b/modules/cloud/authentik/default.nix @@ -105,6 +105,7 @@ in ports = [ "127.0.0.1:${toString cfg.port}:9000" ]; + }; services.worker.service = { image = images.authentik; @@ -123,6 +124,7 @@ in AUTHENTIK_POSTGRESQL__NAME = "authentik"; }; env_file = [ cfg.envFile "${authentikEnv}" ]; + user = "root"; }; docker-compose.volumes = { database.driver = "local"; diff --git a/nki-personal-do/peertube.nix b/nki-personal-do/peertube.nix index a390d90..1e07358 100644 --- a/nki-personal-do/peertube.nix +++ b/nki-personal-do/peertube.nix @@ -76,5 +76,10 @@ in dataDirs = [ "/var/lib/peertube" "/mnt/data/peertube" ]; }; + + systemd.services.peertube = { + requires = [ "arion-authentik.service" ]; + after = [ "arion-authentik.service" ]; + }; }