diff options
author | op <[email protected]> | 2024-05-06 09:07:03 +0100 |
---|---|---|
committer | op <[email protected]> | 2024-05-06 09:07:03 +0100 |
commit | f073f0fc110273d5a18099997ce9180fc2d5842e (patch) | |
tree | 77241f6db0c7b62b7468956b597ff0ad2779c768 | |
parent | 043062eac50e86623044f889031f40f0d6d3c081 (diff) |
fix groups
-rw-r--r-- | hosts/laurel/configuration.nix | 2 | ||||
-rw-r--r-- | hosts/laurel/servarr.nix | 24 |
2 files changed, 20 insertions, 6 deletions
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 @@ | |||
161 | server_name = "oppi.li"; | 161 | server_name = "oppi.li"; |
162 | address = "0.0.0.0"; | 162 | address = "0.0.0.0"; |
163 | port = 6197; | 163 | port = 6197; |
164 | enable_lightning_bolt = false; | 164 | enable_lightning_bolt = false; |
165 | }; | 165 | }; |
166 | }; | 166 | }; |
167 | }; | 167 | }; |
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 @@ | |||
3 | { | 3 | { |
4 | imports = [ ]; | 4 | imports = [ ]; |
5 | 5 | ||
6 | users.groups."torrent".members = [ | ||
7 | "op" | ||
8 | "sonarr" | ||
9 | "radarr" | ||
10 | "bazarr" | ||
11 | "jackett" | ||
12 | "lidarr" | ||
13 | "jellyfin" | ||
14 | "transmission" | ||
15 | ]; | ||
16 | users.users.torrent = { | ||
17 | isNormalUser = true; | ||
18 | extraGroups = [ "wheel" "tty" ]; | ||
19 | }; | ||
6 | services.transmission = { | 20 | services.transmission = { |
7 | enable = true; | 21 | enable = true; |
8 | openFirewall = true; | 22 | openFirewall = true; |
@@ -25,7 +39,7 @@ | |||
25 | services.sonarr = { | 39 | services.sonarr = { |
26 | enable = true; | 40 | enable = true; |
27 | openFirewall = true; | 41 | openFirewall = true; |
28 | user = "torrent"; | 42 | group = "torrent"; |
29 | }; | 43 | }; |
30 | services.nginx.virtualHosts."sonarr.${config.networking.hostName}" = { | 44 | services.nginx.virtualHosts."sonarr.${config.networking.hostName}" = { |
31 | listen = [{ port = 80; addr = "0.0.0.0"; }]; | 45 | listen = [{ port = 80; addr = "0.0.0.0"; }]; |
@@ -37,7 +51,7 @@ | |||
37 | services.radarr = { | 51 | services.radarr = { |
38 | enable = true; | 52 | enable = true; |
39 | openFirewall = true; | 53 | openFirewall = true; |
40 | user = "torrent"; | 54 | group = "torrent"; |
41 | }; | 55 | }; |
42 | services.nginx.virtualHosts."radarr.${config.networking.hostName}" = { | 56 | services.nginx.virtualHosts."radarr.${config.networking.hostName}" = { |
43 | listen = [{ port = 80; addr = "0.0.0.0"; }]; | 57 | listen = [{ port = 80; addr = "0.0.0.0"; }]; |
@@ -49,7 +63,7 @@ | |||
49 | services.bazarr = { | 63 | services.bazarr = { |
50 | enable = true; | 64 | enable = true; |
51 | openFirewall = true; | 65 | openFirewall = true; |
52 | user = "torrent"; | 66 | group = "torrent"; |
53 | }; | 67 | }; |
54 | services.nginx.virtualHosts."bazarr.${config.networking.hostName}" = { | 68 | services.nginx.virtualHosts."bazarr.${config.networking.hostName}" = { |
55 | listen = [{ port = 80; addr = "0.0.0.0"; }]; | 69 | listen = [{ port = 80; addr = "0.0.0.0"; }]; |
@@ -61,7 +75,7 @@ | |||
61 | services.jackett = { | 75 | services.jackett = { |
62 | enable = true; | 76 | enable = true; |
63 | openFirewall = true; | 77 | openFirewall = true; |
64 | user = "torrent"; | 78 | group = "torrent"; |
65 | }; | 79 | }; |
66 | services.nginx.virtualHosts."jackett.${config.networking.hostName}" = { | 80 | services.nginx.virtualHosts."jackett.${config.networking.hostName}" = { |
67 | listen = [{ port = 80; addr = "0.0.0.0"; }]; | 81 | listen = [{ port = 80; addr = "0.0.0.0"; }]; |
@@ -73,7 +87,7 @@ | |||
73 | services.lidarr = { | 87 | services.lidarr = { |
74 | enable = true; | 88 | enable = true; |
75 | openFirewall = true; | 89 | openFirewall = true; |
76 | user = "torrent"; | 90 | group = "torrent"; |
77 | }; | 91 | }; |
78 | services.nginx.virtualHosts."lidarr.${config.networking.hostName}" = { | 92 | services.nginx.virtualHosts."lidarr.${config.networking.hostName}" = { |
79 | listen = [{ port = 80; addr = "0.0.0.0"; }]; | 93 | listen = [{ port = 80; addr = "0.0.0.0"; }]; |