mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
nixos/services: update dependency options for network-required services
This commit is contained in:
parent
4bb9d7808f
commit
e4b63c084a
@ -46,7 +46,8 @@ let
|
|||||||
(jobUnitName name)
|
(jobUnitName name)
|
||||||
{
|
{
|
||||||
description = "Archivebox download group '${name}'";
|
description = "Archivebox download group '${name}'";
|
||||||
after = [ "network.target" ];
|
after = [ "network-online.target" ];
|
||||||
|
wants = [ "network-online.target" ];
|
||||||
documentation = [ "https://docs.archivebox.io/" ];
|
documentation = [ "https://docs.archivebox.io/" ];
|
||||||
preStart = ''
|
preStart = ''
|
||||||
mkdir -p ${lib.escapeShellArg cfg.archivePath}
|
mkdir -p ${lib.escapeShellArg cfg.archivePath}
|
||||||
@ -189,7 +190,8 @@ in
|
|||||||
(lib.mkIf cfg.webserver.enable {
|
(lib.mkIf cfg.webserver.enable {
|
||||||
systemd.services.archivebox-server = {
|
systemd.services.archivebox-server = {
|
||||||
description = "Archivebox web server";
|
description = "Archivebox web server";
|
||||||
after = [ "network.target" ];
|
after = [ "network-online.target" ];
|
||||||
|
wants = [ "network-online.target" ];
|
||||||
documentation = [ "https://docs.archivebox.io/" ];
|
documentation = [ "https://docs.archivebox.io/" ];
|
||||||
wantedBy = [ "graphical-session.target" ];
|
wantedBy = [ "graphical-session.target" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
|
@ -31,7 +31,8 @@ in
|
|||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
systemd.services.wezterm-mux-server = {
|
systemd.services.wezterm-mux-server = {
|
||||||
description = "Wezterm mux server";
|
description = "Wezterm mux server";
|
||||||
after = [ "network.target" ];
|
after = [ "network-online.target" ];
|
||||||
|
wants = [ "network-online.target" ];
|
||||||
path = [ cfg.package ];
|
path = [ cfg.package ];
|
||||||
|
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
@ -124,6 +124,8 @@ in
|
|||||||
in
|
in
|
||||||
lib.nameValuePair (jobUnitName name) {
|
lib.nameValuePair (jobUnitName name) {
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
wants = [ "network-online.target" ];
|
||||||
|
after = [ "network-online.target" ];
|
||||||
description = "yt-dlp archive job for group '${name}'";
|
description = "yt-dlp archive job for group '${name}'";
|
||||||
documentation = [ "man:yt-dlp(1)" ];
|
documentation = [ "man:yt-dlp(1)" ];
|
||||||
enable = true;
|
enable = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user