@@ -54,16 +54,16 @@ This example shows a working media server configuration based on a real producti
5454 sonarr = {
5555 enable = true;
5656 config = {
57- apiKey = { _secret = config.sops.secrets."sonarr/api_key".path;} ;
58- hostConfig.password = { _secret = config.sops.secrets."sonarr/password".path;} ;
57+ apiKey. _secret = config.sops.secrets."sonarr/api_key".path;
58+ hostConfig.password. _secret = config.sops.secrets."sonarr/password".path;
5959 };
6060 };
6161
6262 radarr = {
6363 enable = true;
6464 config = {
65- apiKey = { _secret = config.sops.secrets."radarr/api_key".path;} ;
66- hostConfig.password = { _secret = config.sops.secrets."radarr/password".path;} ;
65+ apiKey. _secret = config.sops.secrets."radarr/api_key".path;
66+ hostConfig.password. _secret = config.sops.secrets."radarr/password".path;
6767 };
6868 };
6969
@@ -75,28 +75,28 @@ This example shows a working media server configuration based on a real producti
7575 lidarr = {
7676 enable = true;
7777 config = {
78- apiKey = { _secret = config.sops.secrets."lidarr/api_key".path;} ;
79- hostConfig.password = { _secret = config.sops.secrets."lidarr/password".path;} ;
78+ apiKey. _secret = config.sops.secrets."lidarr/api_key".path;
79+ hostConfig.password. _secret = config.sops.secrets."lidarr/password".path;
8080 };
8181 };
8282
8383 prowlarr = {
8484 enable = true;
8585 config = {
86- apiKey = { _secret = config.sops.secrets."prowlarr/api_key".path;} ;
87- hostConfig.password = { _secret = config.sops.secrets."prowlarr/password".path;} ;
86+ apiKey. _secret = config.sops.secrets."prowlarr/api_key".path;
87+ hostConfig.password. _secret = config.sops.secrets."prowlarr/password".path;
8888 indexers = [
8989 {
9090 name = "DrunkenSlug";
91- apiKey = { _secret = config.sops.secrets."indexer-api-keys/DrunkenSlug".path;} ;
91+ apiKey. _secret = config.sops.secrets."indexer-api-keys/DrunkenSlug".path;
9292 }
9393 {
9494 name = "NZBFinder";
95- apiKey = { _secret = config.sops.secrets."indexer-api-keys/NZBFinder".path;} ;
95+ apiKey. _secret = config.sops.secrets."indexer-api-keys/NZBFinder".path;
9696 }
9797 {
9898 name = "NzbPlanet";
99- apiKey = { _secret = config.sops.secrets."indexer-api-keys/NzbPlanet".path;} ;
99+ apiKey. _secret = config.sops.secrets."indexer-api-keys/NzbPlanet".path;
100100 }
101101 ];
102102 };
@@ -107,18 +107,17 @@ This example shows a working media server configuration based on a real producti
107107
108108 settings = {
109109 misc = {
110- api_key = { _secret = config.sops.secrets."sabnzbd/api_key".path;} ;
111- nzb_key = { _secret = config.sops.secrets."sabnzbd/nzb_key".path;} ;
110+ api_key. _secret = config.sops.secrets."sabnzbd/api_key".path;
111+ nzb_key. _secret = config.sops.secrets."sabnzbd/nzb_key".path;
112112 };
113113
114114 servers = [
115115 {
116116 name = "Eweka";
117117 host = "sslreader.eweka.nl";
118118 port = 563;
119- # Secrets use { _secret = /path; } syntax
120- username = {_secret = config.sops.secrets."usenet/eweka/username".path;};
121- password = {_secret = config.sops.secrets."usenet/eweka/password".path;};
119+ username._secret = config.sops.secrets."usenet/eweka/username".path;
120+ password._secret = config.sops.secrets."usenet/eweka/password".path;
122121 connections = 20;
123122 ssl = true;
124123 priority = 0;
@@ -128,8 +127,8 @@ This example shows a working media server configuration based on a real producti
128127 name = "NewsgroupDirect";
129128 host = "news.newsgroupdirect.com";
130129 port = 563;
131- username = { _secret = config.sops.secrets."usenet/newsgroupdirect/username".path;} ;
132- password = { _secret = config.sops.secrets."usenet/newsgroupdirect/password".path;} ;
130+ username. _secret = config.sops.secrets."usenet/newsgroupdirect/username".path;
131+ password. _secret = config.sops.secrets."usenet/newsgroupdirect/password".path;
133132 connections = 10;
134133 ssl = true;
135134 priority = 1;
@@ -142,24 +141,24 @@ This example shows a working media server configuration based on a real producti
142141
143142 jellyfin = {
144143 enable = true;
145- apiKey = { _secret = config.sops.secrets."jellyfin/api_key".path;} ;
144+ apiKey. _secret = config.sops.secrets."jellyfin/api_key".path;
146145 users = {
147146 admin = {
148147 mutable = false;
149148 policy.isAdministrator = true;
150- password = { _secret = config.sops.secrets."jellyfin/alice_password".path;} ;
149+ password. _secret = config.sops.secrets."jellyfin/alice_password".path;
151150 };
152151 };
153152 };
154153
155154 seerr = {
156155 enable = true;
157- apiKey = { _secret = config.sops.secrets."seerr/api_key".path;} ;
156+ apiKey. _secret = config.sops.secrets."seerr/api_key".path;
158157 };
159158
160159 mullvad = {
161160 enable = true;
162- accountNumber = { _secret = config.sops.secrets.mullvad-account-number.path;} ;
161+ accountNumber. _secret = config.sops.secrets.mullvad-account-number.path;
163162 location = ["us" "nyc"];
164163 dns = [
165164 "94.140.14.14"
0 commit comments