nixpkgs-suyu/nixos/modules/services/networking
Matthias Treydte 97e61a071d nixos/ssh: take care not to accept empty host key files
In case of a power loss shortly after first boot,
the host keys gernerated by ssh-keygen could exist
in the file system but have zero size, preventing
sshd from starting up.

This commit changes the behaviour to generate host
keys if the file either does not exist or has zero
size, fixing the problem on the next boot.

Thanks to @SuperSandro2000 for figuring this out.
2021-10-12 12:25:38 +02:00
..
firefox treewide: "does not exists" -> "does not exist" 2021-09-09 18:45:33 +00:00
hylafax nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
icecream nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
ircd-hybrid nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
iscsi nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
keepalived nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
nghttpx
ntp nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
ssh nixos/ssh: take care not to accept empty host key files 2021-10-12 12:25:38 +02:00
strongswan-swanctl nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
znc nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
3proxy.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
adguardhome.nix nixos/adguardhome: init (#120568) 2021-04-30 20:55:31 +02:00
amuled.nix treewide: fix double quoted strings in meta.description 2021-01-24 19:56:59 +07:00
aria2.nix
asterisk.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
atftpd.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
autossh.nix treewide: fold -> foldr 2021-01-26 10:57:07 +07:00
avahi-daemon.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
babeld.nix nixos/babeld: update hardening 2021-06-20 13:52:49 +02:00
bee-clef.nix nixos/bee-clef: init at 0.4.7 2021-02-01 10:56:04 +01:00
bee.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
biboumi.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
bind.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
bird.nix nixos/bird: fix bird/bird6 description 2021-07-30 03:13:50 +02:00
bitcoind.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
bitlbee.nix Merge pull request #139765 from eyJhb/bitlbee-user-group 2021-10-06 08:57:33 +02:00
blockbook-frontend.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
charybdis.nix
cjdns.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
cntlm.nix nixos/cntlm: add types 2021-01-26 13:17:19 -08:00
connman.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
consul.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
coredns.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
corerad.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
coturn.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
croc.nix treewide: remove duplicates SystemCallFilters 2021-05-13 15:44:56 +03:00
dante.nix
ddclient.nix nixos/ddclient: add support for IPv6 2021-07-14 02:09:29 +09:00
dhcpcd.nix nixos/{networkd,dhcpcd}: remove udev-settle hack 2021-02-18 22:07:00 +01:00
dhcpd.nix nixos: define the primary group of users where needed 2021-09-12 14:59:30 +02:00
dnscache.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
dnscrypt-proxy2.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
dnscrypt-wrapper.nix nixos/dnscrypt-wrapper: fix nogroup 2021-09-22 11:20:24 +02:00
dnsdist.nix nixos/dnsdist: dndist.conf -> dnsdist.conf 2021-04-18 13:34:28 +02:00
dnsmasq.nix nixos: define the primary group of users where needed 2021-09-12 14:59:30 +02:00
doh-proxy-rust.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
ejabberd.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
epmd.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
ergo.nix
eternal-terminal.nix
fakeroute.nix
ferm.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
fireqos.nix
firewall.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
flannel.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
freenet.nix
freeradius.nix
gateone.nix treewide: fix double quoted strings in meta.description 2021-01-24 19:56:59 +07:00
gdomap.nix
ghostunnel.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
git-daemon.nix nixos: define the primary group of users where needed 2021-09-12 14:59:30 +02:00
globalprotect-vpn.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
gnunet.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
go-neb.nix nixos/go-neb: secret support 2021-06-26 11:59:50 +02:00
go-shadowsocks2.nix
gobgpd.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
gogoclient.nix nixos/gogoclient: add types 2021-01-29 08:39:51 +01:00
gvpe.nix treewide: fix eval without aliases after 9378fdf87e 2021-04-08 13:33:09 +02:00
hans.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
haproxy.nix
helpers.nix
hostapd.nix nixos/hostapd: add interface type 2021-01-29 13:04:50 +01:00
htpdate.nix
i2p.nix
i2pd.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
inspircd.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
iodine.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
iperf3.nix
iwd.nix nixos/iwd: add settings option 2021-07-23 23:06:15 +08:00
jicofo.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
jitsi-videobridge.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
kea.nix nixos/kea: fix config reload 2021-07-30 03:25:11 +02:00
keybase.nix
kippo.nix treewide: fix double quoted strings in meta.description 2021-01-24 19:56:59 +07:00
knot.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
kresd.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
lambdabot.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
libreswan.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
lldpd.nix
logmein-hamachi.nix
magic-wormhole-mailbox-server.nix
mailpile.nix nixos/mailpile add types switch port to port type 2021-01-31 11:26:07 +01:00
matterbridge.nix Link to Libera, Matrix instead of Freenode 2021-07-06 16:35:37 +02:00
minidlna.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
miniupnpd.nix
miredo.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
mjpg-streamer.nix
monero.nix nixos/monero: set port type to types.port 2021-05-30 14:38:20 +02:00
morty.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
mosquitto.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
mstpd.nix
mtprotoproxy.nix
mullvad-vpn.nix nixos/mullvad-vpn: fix firewall issues & remove xfix as maintainer 2021-07-13 11:14:13 +02:00
murmur.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
mxisd.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
namecoind.nix nixos/namecoind: use port type 2021-06-18 17:27:42 +02:00
nar-serve.nix nixos/nar-serve: use port type 2021-06-18 17:28:54 +02:00
nat.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
nats.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
ncdns.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
ndppd.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
nebula.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
networkmanager.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
nextdns.nix
nftables.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
ngircd.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
nix-serve.nix nixos/nix-serve: don't run as nogroup 2021-07-18 08:51:17 +02:00
nix-store-gcs-proxy.nix
nixops-dns.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
nntp-proxy.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
nomad.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
nsd.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
ntopng.nix
nullidentdmod.nix
nylon.nix treewide: fold -> foldr 2021-01-26 10:57:07 +07:00
ocserv.nix
ofono.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
oidentd.nix
onedrive.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
onedrive.xml
openfire.nix
openvpn.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
ostinato.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
owamp.nix treewide: fix double quoted strings in meta.description 2021-01-24 19:56:59 +07:00
pdns-recursor.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
pdnsd.nix
pixiecore.nix nixos/users: require one of users.users.name.{isSystemUser,isNormalUser} 2021-04-14 20:40:00 +02:00
pleroma.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
pleroma.xml nixos-docs: improved the installation instructions of Pleroma 2021-09-17 15:31:11 +02:00
polipo.nix
powerdns.nix
pppd.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
pptpd.nix
prayer.nix nixos/prayer: Add port type 2021-01-31 12:01:41 +01:00
privoxy.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
prosody.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
prosody.xml
quassel.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
quicktun.nix treewide: fold -> foldr 2021-01-26 10:57:07 +07:00
quorum.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
racoon.nix
radicale.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
radvd.nix nixos: define the primary group of users where needed 2021-09-12 14:59:30 +02:00
rdnssd.nix nixos/rdnssd: define group; fix after #133166 2021-09-18 12:00:00 +00:00
redsocks.nix
resilio.nix nixos/resilio: add sharedFolders type 2021-02-03 16:17:37 -08:00
robustirc-bridge.nix
rpcbind.nix
rxe.nix treewide: fix eval without aliases after 9378fdf87e 2021-04-08 13:33:09 +02:00
sabnzbd.nix nixos/sabnzbd: add types 2021-01-31 12:12:59 +01:00
searx.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
shadowsocks.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
shairport-sync.nix nixos/shairport-sync: add types 2021-01-31 12:14:01 +01:00
shellhub-agent.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
shorewall.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
shorewall6.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
shout.nix nixos/shout: define group, fix eval after #133166 2021-09-18 12:00:00 +00:00
skydns.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
smartdns.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
smokeping.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
sniproxy.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
softether.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
soju.nix nixos/soju: add module 2021-08-30 16:28:06 +02:00
solanum.nix nixos/solanum: implement reload and allow config changes 2021-06-16 00:19:35 +02:00
spacecookie.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
spiped.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
squid.nix
sslh.nix iproute: deprecate alias 2021-04-04 01:43:46 +02:00
strongswan.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
stubby.nix
stunnel.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
supplicant.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
supybot.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
syncplay.nix treewide: Port type adaptations 2021-08-11 00:45:08 +02:00
syncthing-relay.nix
syncthing.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
tailscale.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
tcpcrypt.nix
teamspeak3.nix
tedicross.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
tftpd.nix
thelounge.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
tinc.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
tinydns.nix nixos: define the primary group of users where needed 2021-09-12 14:59:30 +02:00
tox-bootstrapd.nix nixos/tox-bootstrapd: use DynamicUser 2021-09-15 22:01:56 +02:00
tox-node.nix
toxvpn.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
trickster.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
tvheadend.nix nixos/tvheadend: define group, fix eval after #133166 2021-09-18 12:00:00 +00:00
ucarp.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
unbound.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
unifi.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
v2ray.nix Merge pull request #133700 from poscat0x04/v2ray-add-package-option 2021-10-08 12:38:15 +08:00
vsftpd.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
wasabibackend.nix nixos/*: fix indentation 2020-11-23 08:42:51 +10:00
websockify.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
wg-quick.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
wireguard.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
wpa_supplicant.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
x2goserver.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
xandikos.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
xinetd.nix
xl2tpd.nix
xrdp.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
yggdrasil.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
yggdrasil.xml
zerobin.nix zerobin: 20160108 -> 1.0.5 2021-03-13 13:06:06 +01:00
zeronet.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
zerotierone.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00