nixpkgs-suyu/nixos/modules/services/networking
Daniel Fullmer ad38a2a646 nixos/ssh: remove empty host key files before generating new ones
In a previous PR [1], the conditional to generate a new host key file
was changed to also include the case when the file exists, but has zero
size. This could occur when the system is uncleanly powered off shortly
after first boot.

However, ssh-keygen prompts the user before overwriting a file. For
example:

$ touch hi
$ ssh-keygen -f hi
Generating public/private rsa key pair.
hi already exists.
Overwrite (y/n)?

So, lets just try to remove the empty file (if it exists) before running
ssh-keygen.

[1] https://github.com/NixOS/nixpkgs/pull/141258
2022-05-03 22:09:43 -07:00
..
hylafax nixos/hylafax: use new type nonEmptyStr 2022-02-05 11:32:22 +01:00
icecream
ircd-hybrid
iscsi
jibri
keepalived
nghttpx
ntp
ssh nixos/ssh: remove empty host key files before generating new ones 2022-05-03 22:09:43 -07:00
strongswan-swanctl
znc
3proxy.nix
adguardhome.nix
amuled.nix nixos/amuled: fix package reference in service definition 2022-03-08 12:14:25 +01:00
antennas.nix
aria2.nix
asterisk.nix asterisk: Create symlinks for each config individually 2022-05-02 10:32:34 +00:00
atftpd.nix
autossh.nix
avahi-daemon.nix
babeld.nix
bee-clef.nix
bee.nix
biboumi.nix
bind.nix
bird.nix nixos/bird: reloadIfChanged -> reloadTriggers 2022-04-03 17:57:04 +01:00
bitcoind.nix
bitlbee.nix
blockbook-frontend.nix
blocky.nix nixos/blocky: init 2022-02-14 22:48:32 -03:00
charybdis.nix
cjdns.nix
cloudflare-dyndns.nix nixos/cloudflare-dyndns: init 2022-05-01 16:50:31 -07:00
cntlm.nix
connman.nix nixos/connman: fix evaluation 2022-02-05 13:51:52 +01:00
consul.nix nixos/consul: allow ipv6-only 2022-04-20 17:32:06 +02:00
coredns.nix
corerad.nix
coturn.nix
create_ap.nix nixos/create_ap: add module 2022-04-23 07:17:44 -04:00
croc.nix
dante.nix
ddclient.nix
dhcpcd.nix
dhcpd.nix nixos/dhcpd6: Use fixed-address6 for dhcpd6 address reservations 2022-03-29 07:58:42 -07:00
dnscache.nix
dnscrypt-proxy2.nix
dnscrypt-wrapper.nix
dnsdist.nix
dnsmasq.nix
doh-proxy-rust.nix
ejabberd.nix
envoy.nix nixos/envoy: init 2022-04-07 14:43:53 +00:00
epmd.nix
ergo.nix
ergochat.nix
eternal-terminal.nix eternal-terminal: remove pingiun as maintainer 2022-02-19 17:47:41 +01:00
fakeroute.nix
ferm.nix
fireqos.nix
firewall.nix treewide: remove obsolete kernel version checks 2022-02-19 21:09:19 +00:00
flannel.nix
freenet.nix
freeradius.nix
frr.nix
gateone.nix
gdomap.nix
ghostunnel.nix
git-daemon.nix
globalprotect-vpn.nix
gnunet.nix
go-neb.nix
go-shadowsocks2.nix
gobgpd.nix
gvpe.nix
hans.nix
haproxy.nix
headscale.nix headscale: Fix typo as per systemd.exec(5) 2022-04-18 02:00:29 +05:30
helpers.nix
hostapd.nix
htpdate.nix
https-dns-proxy.nix nixos/https-dns-proxy: init module 2022-03-24 15:36:28 +08:00
i2p.nix
i2pd.nix nixos/i2pd: get rid of unnecessary shell script 2022-01-31 23:21:40 +01:00
inspircd.nix
iodine.nix
iperf3.nix
iwd.nix nixos/iwd: workaround for race condition where wlan device disappears 2022-03-22 19:36:51 +08:00
jicofo.nix
jitsi-videobridge.nix
kea.nix nixos/kea: Allow specifying custom config file 2022-04-03 17:34:00 +02:00
keybase.nix
knot.nix
kresd.nix
lambdabot.nix
libreswan.nix
lldpd.nix
logmein-hamachi.nix
lxd-image-server.nix nixos/logrotate: convert to freeform 2022-04-01 07:09:26 +09:00
magic-wormhole-mailbox-server.nix
matterbridge.nix
minidlna.nix
miniupnpd.nix
miredo.nix
mjpg-streamer.nix
monero.nix
morty.nix
mosquitto.md
mosquitto.nix
mosquitto.xml
mozillavpn.nix mozillavpn: init at 2.7.1 2022-03-01 22:41:23 -08:00
mstpd.nix
mtprotoproxy.nix
mtr-exporter.nix
mullvad-vpn.nix
multipath.nix treewide: remove obsolete kernel version checks 2022-02-19 21:09:19 +00:00
murmur.nix mumble,murmur: 1.3.4 -> 1.4.231 2022-02-26 22:08:22 +01:00
mxisd.nix
namecoind.nix
nar-serve.nix
nat.nix
nats.nix
nbd.nix nixos/nbd: fix nbd-server config section ordering 2022-04-18 17:28:09 +01:00
ncdns.nix nixos/ncdns: listen on IPv6 by default 2022-04-14 21:07:15 +02:00
ndppd.nix
nebula.nix
networkmanager.nix Merge pull request #166456 from mweinelt/isc-dhcp 2022-04-10 11:05:29 +01:00
nextdns.nix
nftables.nix nixos/nftables: Allow use with iptables (#121517) 2022-01-30 13:59:56 +01:00
ngircd.nix
nix-serve.nix
nix-store-gcs-proxy.nix
nixops-dns.nix
nntp-proxy.nix
nomad.nix
nsd.nix nixos/treewide: Add last missing option types 2022-02-28 22:50:06 +01:00
ntopng.nix nixos/ntopng: http-port -> httpPort 2022-02-19 14:03:33 +03:00
nullidentdmod.nix
nylon.nix
ocserv.nix
ofono.nix
oidentd.nix
onedrive.nix
onedrive.xml
openconnect.nix nixos/openconnect: add hardening flags 2022-04-10 14:19:22 +02:00
openvpn.nix
ostinato.nix
owamp.nix
pdns-recursor.nix nixos/pdns-recursor: update default values 2022-04-14 17:31:16 +02:00
pdnsd.nix
pixiecore.nix
pleroma.nix nixos/pleroma: regenerate empty release cookie files 2022-03-17 15:22:14 +01:00
pleroma.xml
polipo.nix
powerdns.nix pdns: rename from powerdns 2022-03-28 18:04:19 +02:00
pppd.nix
pptpd.nix
prayer.nix
privoxy.nix
prosody.nix prosody: 0.11.13 -> 0.12.0 2022-05-02 12:43:19 +02:00
prosody.xml
quassel.nix
quicktun.nix
quorum.nix
radicale.nix
radvd.nix
rdnssd.nix
redsocks.nix
resilio.nix
robustirc-bridge.nix
rpcbind.nix
rxe.nix
sabnzbd.nix
seafile.nix seahub: init at 8.0.8 2022-01-30 20:45:56 +00:00
searx.nix
shadowsocks.nix
shairport-sync.nix
shellhub-agent.nix nixos/shellhub-agent: use package internally, avoiding it in PATH 2022-04-10 13:32:10 -03:00
shorewall.nix
shorewall6.nix
shout.nix
skydns.nix
smartdns.nix
smokeping.nix
sniproxy.nix
snowflake-proxy.nix nixos/snowflake-proxy: init 2022-03-04 08:41:38 -06:00
softether.nix
soju.nix
solanum.nix
spacecookie.nix
spiped.nix
squid.nix squid: 4.17 -> 5.4.1 2022-03-25 15:59:05 +00:00
sslh.nix
strongswan.nix
stubby.nix
stunnel.nix
supplicant.nix
supybot.nix
syncplay.nix nixos/syncplay: Switch to version without GUI 2022-04-13 23:58:51 +02:00
syncthing-relay.nix
syncthing.nix
tailscale.nix nixos/tailscale: allow to set TS_PERMIT_CERT_UID env variable 2022-04-17 12:13:24 +02:00
tcpcrypt.nix
teamspeak3.nix
tedicross.nix
teleport.nix
tetrd.nix nixos/tetrd: add to module list and fix enable description 2022-02-24 09:44:57 -08:00
tftpd.nix
thelounge.nix
tinc.nix
tinydns.nix
tox-bootstrapd.nix
tox-node.nix tox-node: fix config 2022-03-09 23:27:34 +03:00
toxvpn.nix
trickster.nix
tvheadend.nix
ucarp.nix
unbound.nix nixos/treewide: Add last missing option types 2022-02-28 22:50:06 +01:00
unifi.nix
v2ray.nix
vsftpd.nix nixos/treewide: Add last missing option types 2022-02-28 22:50:06 +01:00
wasabibackend.nix
websockify.nix
wg-netmanager.nix wg-netmanager: init at 0.3.6 (#155149) 2022-02-07 16:46:51 +01:00
wg-quick.nix nixos/wg-quick: add autostart option to interfaces (#162219) 2022-03-22 13:25:57 +00:00
wireguard.nix
wpa_supplicant.nix nixos/wireless: don't attempt fallback on WPA3 only networks 2022-02-04 08:46:32 +01:00
x2goserver.nix
xandikos.nix
xinetd.nix
xl2tpd.nix
xrdp.nix
yggdrasil.nix
yggdrasil.xml nixos/yggdrasil: fix radvd example in manual 2022-02-05 23:20:08 +01:00
zerobin.nix
zeronet.nix treewide/meta: Remove chiiruno and replace with Madouura (#169096) 2022-04-18 02:13:36 +03:00
zerotierone.nix