systems/git: make sshd startup less racy and flaky

This commit is contained in:
emily 2024-07-17 15:39:50 +02:00
parent 81fc914d79
commit cc1e3f2e14
Signed by untrusted user: emilylange
GPG key ID: 0AD773CE46FD0F87

View file

@ -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;