From f401617e77aac11d81be78c0ca1d44a4a368d240 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20B=C3=A4dorf?= Date: Sun, 29 Oct 2023 02:38:46 +0100 Subject: [PATCH] refactor: add nginx to mastodon group in mastodon module --- hosts/nachtigall/apps/mastodon.nix | 3 +++ hosts/nachtigall/apps/nginx.nix | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hosts/nachtigall/apps/mastodon.nix b/hosts/nachtigall/apps/mastodon.nix index 18299a1..c1b7dfa 100644 --- a/hosts/nachtigall/apps/mastodon.nix +++ b/hosts/nachtigall/apps/mastodon.nix @@ -32,6 +32,9 @@ owner = config.services.mastodon.user; }; + # Nginx user needs access to mastodon unix sockets + users.users.nginx.extraGroups = [ "mastodon" ]; + services.mastodon = { enable = true; # Different from WEB_DOMAIN in our case diff --git a/hosts/nachtigall/apps/nginx.nix b/hosts/nachtigall/apps/nginx.nix index 2715583..9849b82 100644 --- a/hosts/nachtigall/apps/nginx.nix +++ b/hosts/nachtigall/apps/nginx.nix @@ -17,8 +17,6 @@ in { }; recommendedProxySettings = true; }; - # Nginx user needs access to mastodon unix sockets - users.users.nginx.extraGroups = [ "mastodon" ]; security.acme = { acceptTerms = true;