From f073f0fc110273d5a18099997ce9180fc2d5842e Mon Sep 17 00:00:00 2001 From: op Date: Mon, 6 May 2024 09:07:03 +0100 Subject: fix groups --- hosts/laurel/servarr.nix | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) (limited to 'hosts/laurel/servarr.nix') diff --git a/hosts/laurel/servarr.nix b/hosts/laurel/servarr.nix index 8b5dd83..e300759 100644 --- a/hosts/laurel/servarr.nix +++ b/hosts/laurel/servarr.nix @@ -3,6 +3,20 @@ { imports = [ ]; + users.groups."torrent".members = [ + "op" + "sonarr" + "radarr" + "bazarr" + "jackett" + "lidarr" + "jellyfin" + "transmission" + ]; + users.users.torrent = { + isNormalUser = true; + extraGroups = [ "wheel" "tty" ]; + }; services.transmission = { enable = true; openFirewall = true; @@ -25,7 +39,7 @@ services.sonarr = { enable = true; openFirewall = true; - user = "torrent"; + group = "torrent"; }; services.nginx.virtualHosts."sonarr.${config.networking.hostName}" = { listen = [{ port = 80; addr = "0.0.0.0"; }]; @@ -37,7 +51,7 @@ services.radarr = { enable = true; openFirewall = true; - user = "torrent"; + group = "torrent"; }; services.nginx.virtualHosts."radarr.${config.networking.hostName}" = { listen = [{ port = 80; addr = "0.0.0.0"; }]; @@ -49,7 +63,7 @@ services.bazarr = { enable = true; openFirewall = true; - user = "torrent"; + group = "torrent"; }; services.nginx.virtualHosts."bazarr.${config.networking.hostName}" = { listen = [{ port = 80; addr = "0.0.0.0"; }]; @@ -61,7 +75,7 @@ services.jackett = { enable = true; openFirewall = true; - user = "torrent"; + group = "torrent"; }; services.nginx.virtualHosts."jackett.${config.networking.hostName}" = { listen = [{ port = 80; addr = "0.0.0.0"; }]; @@ -73,7 +87,7 @@ services.lidarr = { enable = true; openFirewall = true; - user = "torrent"; + group = "torrent"; }; services.nginx.virtualHosts."lidarr.${config.networking.hostName}" = { listen = [{ port = 80; addr = "0.0.0.0"; }]; -- cgit v1.2.3