From cc1e3f2e14d9301e0313607113cfd3dffcd56a7d Mon Sep 17 00:00:00 2001 From: emilylange Date: Wed, 17 Jul 2024 15:39:50 +0200 Subject: [PATCH] systems/git: make sshd startup less racy and flaky --- hosts/git/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hosts/git/default.nix b/hosts/git/default.nix index 7d3383c..065c4f3 100644 --- a/hosts/git/default.nix +++ b/hosts/git/default.nix @@ -30,6 +30,11 @@ in services.openssh.listenAddresses = [{ addr = "[${ipv6.openssh}]"; }]; + # Defaults to network.target, but networkd may take a while to settle and set up + # the required (additional) IPv6 address, leading to sshd to not being able to + # bind to the requested IP, crashing 5 times and running into the default + # restart counter limit (5). + systemd.services.sshd.after = [ "network-online.target" ]; bagel.services.forgejo = { enable = true;