forked from the-distro/infra
systems/git: make sshd startup less racy and flaky
This commit is contained in:
parent
81fc914d79
commit
cc1e3f2e14
|
@ -30,6 +30,11 @@ in
|
||||||
services.openssh.listenAddresses = [{
|
services.openssh.listenAddresses = [{
|
||||||
addr = "[${ipv6.openssh}]";
|
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 = {
|
bagel.services.forgejo = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Reference in a new issue