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/configuration.nix | 2 +- hosts/laurel/servarr.nix | 24 +++++++++++++++++++----- 2 files changed, 20 insertions(+), 6 deletions(-) (limited to 'hosts/laurel') diff --git a/hosts/laurel/configuration.nix b/hosts/laurel/configuration.nix index ab05bc0..6db299c 100644 --- a/hosts/laurel/configuration.nix +++ b/hosts/laurel/configuration.nix @@ -161,7 +161,7 @@ server_name = "oppi.li"; address = "0.0.0.0"; port = 6197; - enable_lightning_bolt = false; + enable_lightning_bolt = false; }; }; }; 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