home-manager/services: update dependency settings for network-dependent services

This commit is contained in:
Gabriel Arazas 2024-08-20 19:30:53 +08:00
parent 39cc3b50d6
commit 60e40a2073
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360
3 changed files with 8 additions and 5 deletions

View File

@ -113,7 +113,7 @@ in
Unit = {
Description =
"Archivebox archive group '${name}' for ${cfg.archivePath}";
After = "network.target";
After = [ "network-online.target" ];
Documentation = [ "https://docs.archivebox.io/" ];
};
@ -142,7 +142,8 @@ in
archivebox-server = {
Unit = {
Description = "Archivebox server for ${cfg.archivePath}";
After = "network.target";
After = [ "network-online.target" ];
Wants = [ "network-online.target" ];
Documentation = [ "https://docs.archivebox.io/" ];
};
@ -164,7 +165,8 @@ in
lib.nameValuePair (jobUnitName name) {
Unit = {
Description = "Archivebox additions for ${cfg.archivePath}";
After = "network.target";
After = [ "network-online.target" ];
Wants = [ "network-online.target" ];
Documentation = [ "https://docs.archivebox.io/" ];
};

View File

@ -40,7 +40,7 @@ in
Unit = {
Description = "Gonic media server";
Documentation = [ "https://github.com/sentriz/gonic/wiki" ];
After = [ "network.target" ];
After = [ "network-online.target" ];
};
Service = {

View File

@ -59,6 +59,8 @@ in
Unit = {
Description = "Matcha periodic feed digest generator";
Documentation = [ "https://github.com/piqoni/matcha" ];
After = [ "network-online.target" ];
Wants = [ "network-online.target" ];
};
Install.WantedBy = [ "default.target" ];
@ -73,7 +75,6 @@ in
Unit = {
Description = "Matcha periodic feed digest generator";
Documentation = [ "https://github.com/piqoni/matcha" ];
After = [ "network.target" ];
};
Install.WantedBy = [ "timers.target" ];
Timer = {