wait for active internet connection
This commit is contained in:
parent
336d3ecf21
commit
f04316b277
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user