Compare commits
3 Commits
656571bdbf
...
a57570ce80
| Author | SHA1 | Date | |
|---|---|---|---|
| a57570ce80 | |||
| 0f5ce875a9 | |||
| 37176413cc |
@@ -456,15 +456,19 @@ in
|
|||||||
name: inst:
|
name: inst:
|
||||||
lib.nameValuePair "${inst.serviceName}-init" {
|
lib.nameValuePair "${inst.serviceName}-init" {
|
||||||
description = "Initialize ${name} API connections";
|
description = "Initialize ${name} API connections";
|
||||||
after = [ "${inst.serviceName}.service" ] ++ (getSyncedAppDeps inst)
|
after = [
|
||||||
++ (lib.optional (inst.networkNamespacePath != null) "wg.service");
|
"${inst.serviceName}.service"
|
||||||
|
]
|
||||||
|
++ (getSyncedAppDeps inst)
|
||||||
|
++ (lib.optional (inst.networkNamespacePath != null) "wg.service");
|
||||||
requires = [ "${inst.serviceName}.service" ];
|
requires = [ "${inst.serviceName}.service" ];
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
RemainAfterExit = true;
|
RemainAfterExit = true;
|
||||||
ExecStart = "${mkInitScript name inst}";
|
ExecStart = "${mkInitScript name inst}";
|
||||||
} // lib.optionalAttrs (inst.networkNamespacePath != null) {
|
}
|
||||||
|
// lib.optionalAttrs (inst.networkNamespacePath != null) {
|
||||||
NetworkNamespacePath = inst.networkNamespacePath;
|
NetworkNamespacePath = inst.networkNamespacePath;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -182,7 +182,16 @@ testPkgs.testers.runNixOSTest {
|
|||||||
prowlarrUrl = "http://localhost:9696";
|
prowlarrUrl = "http://localhost:9696";
|
||||||
baseUrl = "http://localhost:8989";
|
baseUrl = "http://localhost:8989";
|
||||||
apiKeyFrom = "/var/lib/sonarr/.config/NzbDrone/config.xml";
|
apiKeyFrom = "/var/lib/sonarr/.config/NzbDrone/config.xml";
|
||||||
syncCategories = [ 5000 5010 5020 5030 5040 5045 5050 5090 ];
|
syncCategories = [
|
||||||
|
5000
|
||||||
|
5010
|
||||||
|
5020
|
||||||
|
5030
|
||||||
|
5040
|
||||||
|
5045
|
||||||
|
5050
|
||||||
|
5090
|
||||||
|
];
|
||||||
serviceName = "sonarr";
|
serviceName = "sonarr";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
@@ -192,7 +201,18 @@ testPkgs.testers.runNixOSTest {
|
|||||||
prowlarrUrl = "http://localhost:9696";
|
prowlarrUrl = "http://localhost:9696";
|
||||||
baseUrl = "http://localhost:7878";
|
baseUrl = "http://localhost:7878";
|
||||||
apiKeyFrom = "/var/lib/radarr/.config/Radarr/config.xml";
|
apiKeyFrom = "/var/lib/radarr/.config/Radarr/config.xml";
|
||||||
syncCategories = [ 2000 2010 2020 2030 2040 2045 2050 2060 2070 2080 ];
|
syncCategories = [
|
||||||
|
2000
|
||||||
|
2010
|
||||||
|
2020
|
||||||
|
2030
|
||||||
|
2040
|
||||||
|
2045
|
||||||
|
2050
|
||||||
|
2060
|
||||||
|
2070
|
||||||
|
2080
|
||||||
|
];
|
||||||
serviceName = "radarr";
|
serviceName = "radarr";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user