Defer network-dependent services startup
This commit is contained in:
parent
1a16f29e56
commit
3a8f9696e1
|
@ -18,6 +18,7 @@ in {
|
||||||
'';
|
'';
|
||||||
serviceConfig.Type = "oneshot";
|
serviceConfig.Type = "oneshot";
|
||||||
startAt = "22:00:00";
|
startAt = "22:00:00";
|
||||||
|
after = [ "network-online.target" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Clean up Doom Emacs monthly
|
# Clean up Doom Emacs monthly
|
||||||
|
@ -38,6 +39,7 @@ in {
|
||||||
script = "${pkgs.neovim}/bin/nvim +PlugUpgrade +PlugUpdate +qa";
|
script = "${pkgs.neovim}/bin/nvim +PlugUpgrade +PlugUpdate +qa";
|
||||||
serviceConfig.Type = "oneshot";
|
serviceConfig.Type = "oneshot";
|
||||||
startAt = "Wed 18:00:00";
|
startAt = "Wed 18:00:00";
|
||||||
|
after = [ "network-online.target" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Push password-store changes to git daily
|
# Push password-store changes to git daily
|
||||||
|
@ -47,6 +49,7 @@ in {
|
||||||
script = "${pkgs.pass-wayland}/bin/pass git push";
|
script = "${pkgs.pass-wayland}/bin/pass git push";
|
||||||
serviceConfig.Type = "oneshot";
|
serviceConfig.Type = "oneshot";
|
||||||
startAt = "18:00:00";
|
startAt = "18:00:00";
|
||||||
|
after = [ "network-online.target" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Sync mail using IDLE
|
# Sync mail using IDLE
|
||||||
|
@ -63,7 +66,7 @@ in {
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
RestartSec = 20;
|
RestartSec = 20;
|
||||||
};
|
};
|
||||||
after = [ "network.target" ];
|
after = [ "network-online.target" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.user.services.goimapnotify-gmail = {
|
systemd.user.services.goimapnotify-gmail = {
|
||||||
|
@ -79,7 +82,7 @@ in {
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
RestartSec = 20;
|
RestartSec = 20;
|
||||||
};
|
};
|
||||||
after = [ "network.target" ];
|
after = [ "network-online.target" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.user.services.goimapnotify-disroot = {
|
systemd.user.services.goimapnotify-disroot = {
|
||||||
|
@ -95,7 +98,7 @@ in {
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
RestartSec = 20;
|
RestartSec = 20;
|
||||||
};
|
};
|
||||||
after = [ "network.target" ];
|
after = [ "network-online.target" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
# HACK Change home partition permissions for mopidy
|
# HACK Change home partition permissions for mopidy
|
||||||
|
@ -115,5 +118,6 @@ in {
|
||||||
script = "${pkgs.git}/bin/git -C /home/coolneng/Projects/panacea push";
|
script = "${pkgs.git}/bin/git -C /home/coolneng/Projects/panacea push";
|
||||||
serviceConfig.Type = "oneshot";
|
serviceConfig.Type = "oneshot";
|
||||||
startAt = "14:00:00";
|
startAt = "14:00:00";
|
||||||
|
after = [ "network-online.target" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue