mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 10:58:02 +00:00
home-manager/services: update dependency settings for network-dependent services
This commit is contained in:
parent
39cc3b50d6
commit
60e40a2073
@ -113,7 +113,7 @@ in
|
|||||||
Unit = {
|
Unit = {
|
||||||
Description =
|
Description =
|
||||||
"Archivebox archive group '${name}' for ${cfg.archivePath}";
|
"Archivebox archive group '${name}' for ${cfg.archivePath}";
|
||||||
After = "network.target";
|
After = [ "network-online.target" ];
|
||||||
Documentation = [ "https://docs.archivebox.io/" ];
|
Documentation = [ "https://docs.archivebox.io/" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -142,7 +142,8 @@ in
|
|||||||
archivebox-server = {
|
archivebox-server = {
|
||||||
Unit = {
|
Unit = {
|
||||||
Description = "Archivebox server for ${cfg.archivePath}";
|
Description = "Archivebox server for ${cfg.archivePath}";
|
||||||
After = "network.target";
|
After = [ "network-online.target" ];
|
||||||
|
Wants = [ "network-online.target" ];
|
||||||
Documentation = [ "https://docs.archivebox.io/" ];
|
Documentation = [ "https://docs.archivebox.io/" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -164,7 +165,8 @@ in
|
|||||||
lib.nameValuePair (jobUnitName name) {
|
lib.nameValuePair (jobUnitName name) {
|
||||||
Unit = {
|
Unit = {
|
||||||
Description = "Archivebox additions for ${cfg.archivePath}";
|
Description = "Archivebox additions for ${cfg.archivePath}";
|
||||||
After = "network.target";
|
After = [ "network-online.target" ];
|
||||||
|
Wants = [ "network-online.target" ];
|
||||||
Documentation = [ "https://docs.archivebox.io/" ];
|
Documentation = [ "https://docs.archivebox.io/" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ in
|
|||||||
Unit = {
|
Unit = {
|
||||||
Description = "Gonic media server";
|
Description = "Gonic media server";
|
||||||
Documentation = [ "https://github.com/sentriz/gonic/wiki" ];
|
Documentation = [ "https://github.com/sentriz/gonic/wiki" ];
|
||||||
After = [ "network.target" ];
|
After = [ "network-online.target" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
Service = {
|
Service = {
|
||||||
|
@ -59,6 +59,8 @@ in
|
|||||||
Unit = {
|
Unit = {
|
||||||
Description = "Matcha periodic feed digest generator";
|
Description = "Matcha periodic feed digest generator";
|
||||||
Documentation = [ "https://github.com/piqoni/matcha" ];
|
Documentation = [ "https://github.com/piqoni/matcha" ];
|
||||||
|
After = [ "network-online.target" ];
|
||||||
|
Wants = [ "network-online.target" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
Install.WantedBy = [ "default.target" ];
|
Install.WantedBy = [ "default.target" ];
|
||||||
@ -73,7 +75,6 @@ in
|
|||||||
Unit = {
|
Unit = {
|
||||||
Description = "Matcha periodic feed digest generator";
|
Description = "Matcha periodic feed digest generator";
|
||||||
Documentation = [ "https://github.com/piqoni/matcha" ];
|
Documentation = [ "https://github.com/piqoni/matcha" ];
|
||||||
After = [ "network.target" ];
|
|
||||||
};
|
};
|
||||||
Install.WantedBy = [ "timers.target" ];
|
Install.WantedBy = [ "timers.target" ];
|
||||||
Timer = {
|
Timer = {
|
||||||
|
Loading…
Reference in New Issue
Block a user