diff options
-rw-r--r-- | ops/modules/gerrit-autosubmit.nix | 1 | ||||
-rw-r--r-- | users/sterni/machines/ingeborg/http/code.sterni.lv.nix | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/ops/modules/gerrit-autosubmit.nix b/ops/modules/gerrit-autosubmit.nix index 03b293ce2e9b..34342c8d55f4 100644 --- a/ops/modules/gerrit-autosubmit.nix +++ b/ops/modules/gerrit-autosubmit.nix @@ -25,6 +25,7 @@ in systemd.services.gerrit-autosubmit = { inherit description; wantedBy = [ "multi-user.target" ]; + wants = [ "network-online.target" ]; after = [ "network-online.target" ]; serviceConfig = { diff --git a/users/sterni/machines/ingeborg/http/code.sterni.lv.nix b/users/sterni/machines/ingeborg/http/code.sterni.lv.nix index 94d7915d7fe8..fd4975ed1d59 100644 --- a/users/sterni/machines/ingeborg/http/code.sterni.lv.nix +++ b/users/sterni/machines/ingeborg/http/code.sterni.lv.nix @@ -227,7 +227,9 @@ in name = unitName name; value = { description = "mirror git repository ${name}"; + requires = [ "network-online.target" ]; after = [ "network-online.target" ]; + script = let path = repoPath name repo; |