wait for active internet connection

This commit is contained in:
Kristian Krsnik 2024-07-27 18:31:19 +02:00
parent 336d3ecf21
commit f04316b277
Signed by: Kristian
GPG Key ID: FD1330AC9F909E85

View File

@ -44,17 +44,17 @@ in {
config = mkIf cfg.enable {
environment.systemPackages = [package];
systemd.services.dyn-gandi = mkIf (cfg.timer
!= null) {
systemd.services.dyn-gandi = mkIf (cfg.timer != null) {
script = "${package}/bin/dyn-gandi --config ${configFile}";
after = ["network-online.target"];
serviceConfig = {
Type = "oneshot";
};
};
systemd.timers.dyn-gandi = mkIf (cfg.timer
!= null) {
systemd.timers.dyn-gandi = mkIf (cfg.timer != null) {
wantedBy = ["timers.target"];
timerConfig = {
OnBootSec = "0s";