From 5fb0285de25edde275bcd933cb6b8e4e71a812ab Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 26 Aug 2022 23:44:17 +0200 Subject: [PATCH] VEGAS/fbi: use local mediamanagers group --- hosts/VEGAS/services/fbi/default.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/hosts/VEGAS/services/fbi/default.nix b/hosts/VEGAS/services/fbi/default.nix index ba86fb1..7886a8d 100644 --- a/hosts/VEGAS/services/fbi/default.nix +++ b/hosts/VEGAS/services/fbi/default.nix @@ -17,14 +17,19 @@ with tools.nginx; }; }; + users = { + groups.mediamanagers.gid = 646000020; + users = { + radarr.extraGroups = [ "mediamanagers" ]; + sonarr.extraGroups = [ "mediamanagers" ]; + }; + }; services = { radarr = { enable = true; - user = "svcradarr"; }; sonarr = { enable = true; - user = "svcsonarr"; }; prowlarr = { enable = true; @@ -41,7 +46,6 @@ with tools.nginx; fbi-requests = vhosts.proxy ombi.url; }; }; - systemd.slices.mediamanagement.after = [ "nss-user-lookup.target" ]; systemd.services.radarr.serviceConfig.Slice = "mediamanagement.slice"; systemd.services.sonarr.serviceConfig.Slice = "mediamanagement.slice"; systemd.services.prowlarr = {