Compare commits
3 Commits
a57570ce80
...
656571bdbf
| Author | SHA1 | Date | |
|---|---|---|---|
| 656571bdbf | |||
| ecbbd62426 | |||
| 800a6d3f03 |
@@ -456,10 +456,7 @@ in
|
||||
name: inst:
|
||||
lib.nameValuePair "${inst.serviceName}-init" {
|
||||
description = "Initialize ${name} API connections";
|
||||
after = [
|
||||
"${inst.serviceName}.service"
|
||||
]
|
||||
++ (getSyncedAppDeps inst)
|
||||
after = [ "${inst.serviceName}.service" ] ++ (getSyncedAppDeps inst)
|
||||
++ (lib.optional (inst.networkNamespacePath != null) "wg.service");
|
||||
requires = [ "${inst.serviceName}.service" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
@@ -467,8 +464,7 @@ in
|
||||
Type = "oneshot";
|
||||
RemainAfterExit = true;
|
||||
ExecStart = "${mkInitScript name inst}";
|
||||
}
|
||||
// lib.optionalAttrs (inst.networkNamespacePath != null) {
|
||||
} // lib.optionalAttrs (inst.networkNamespacePath != null) {
|
||||
NetworkNamespacePath = inst.networkNamespacePath;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -182,16 +182,7 @@ testPkgs.testers.runNixOSTest {
|
||||
prowlarrUrl = "http://localhost:9696";
|
||||
baseUrl = "http://localhost:8989";
|
||||
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";
|
||||
}
|
||||
{
|
||||
@@ -201,18 +192,7 @@ testPkgs.testers.runNixOSTest {
|
||||
prowlarrUrl = "http://localhost:9696";
|
||||
baseUrl = "http://localhost:7878";
|
||||
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";
|
||||
}
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user