3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/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 treewide: make option examples constant 2021-12-09 01:38:24 +01:00
keepalived
nghttpx
ntp nixos/*: add trivial defaultText for options with simple defaults 2021-12-02 22:35:04 +01:00
ssh nixos/ssh: remove empty host key files before generating new ones 2022-05-03 22:09:43 -07:00
strongswan-swanctl strongswan: 5.8.1 -> 5.9.4 2021-11-15 21:06:57 +00:00
znc
3proxy.nix
adguardhome.nix nixos/adguardhome: Fix #154775 by checking for settings 2022-01-14 01:54:41 +01:00
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 nixos/bind: configurable "forward" setting 2022-01-01 08:33:51 -06:00
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 nixos/charybdis: implement reload functionality 2021-11-30 23:33:34 +01:00
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 nixos/*: add trivial defaultText for options with simple defaults 2021-12-02 22:35:04 +01:00
create_ap.nix nixos/create_ap: add module 2022-04-23 07:17:44 -04:00
croc.nix Merge pull request #122460 from ju1m/croc 2022-01-02 15:56:58 +01:00
dante.nix
ddclient.nix nixos/ddclient: don't chown secrets until dynamicuser issue is resolved 2022-01-15 07:21:05 +01:00
dhcpcd.nix nixos/dhcpcd: assert if privSep && alternative malloc 2022-01-03 22:32:13 +01:00
dhcpd.nix nixos/dhcpd6: Use fixed-address6 for dhcpd6 address reservations 2022-03-29 07:58:42 -07:00
dnscache.nix
dnscrypt-proxy2.nix nixos/documentation: split options doc build 2022-01-02 19:46:13 +01:00
dnscrypt-wrapper.nix nixos/*: add trivial defaultText for options with simple defaults 2021-12-02 22:35:04 +01:00
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 treewide: set defaultText for options using simple path defaults 2021-12-09 01:12:13 +01:00
ergochat.nix nixos/ergochat: init 2022-01-14 23:33:23 +01:00
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 nixos/*: add trivial defaultText for options with simple defaults 2021-12-02 22:35:04 +01:00
freenet.nix
freeradius.nix freeradius: fix radius user 2021-12-07 08:51:57 +01:00
frr.nix nixos/frr: init 2022-01-09 04:12:55 +01:00
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 nixos/jitsi-videobridge: Mitigate CVE-2021-44228 (#150021) 2021-12-10 11:16:20 +01:00
kea.nix nixos/kea: Allow specifying custom config file 2022-04-03 17:34:00 +02:00
keybase.nix
knot.nix nixos/knot: update systemd hardening 2021-12-04 16:53:31 +01:00
kresd.nix Fix invalid regular expression #156861 2022-01-26 16:23:14 +01:00
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 monero: rename to monero-cli 2021-11-28 11:35:14 +01:00
morty.nix
mosquitto.md
mosquitto.nix nixos/mosquitto: add package option 2022-01-19 15:59:53 +01:00
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 mtr-exporter: init at 0.1.0 (3ce854a5) 2022-01-09 13:57:06 +01:00
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 nixos/nix-serve: add openFirewall option 2022-01-17 15:14:02 -08:00
nix-store-gcs-proxy.nix
nixops-dns.nix
nntp-proxy.nix
nomad.nix nixos/nomad: add flag of plugin-dir 2021-11-17 15:42:05 -08:00
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 nixos/acme: Update documentation 2021-12-26 16:49:55 +00:00
quassel.nix treewide: add defaultText to remaining options 2021-12-09 01:42:24 +01:00
quicktun.nix
quorum.nix treewide: set defaultText for options using simple path defaults 2021-12-09 01:12:13 +01:00
radicale.nix
radvd.nix
rdnssd.nix
redsocks.nix
resilio.nix nixos/*: add trivial defaultText for options with simple defaults 2021-12-02 22:35:04 +01:00
robustirc-bridge.nix
rpcbind.nix
rxe.nix
sabnzbd.nix nixos/sabnzbd: add package option 2021-11-19 20:01:24 -08:00
seafile.nix seahub: init at 8.0.8 2022-01-30 20:45:56 +00:00
searx.nix nixos/make-options-doc: turn relatedPackages into links 2022-01-02 19:46:13 +01:00
shadowsocks.nix
shairport-sync.nix Fix shairport-sync module to create and set an explicit group 2021-12-03 03:16:03 -05:00
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 nixos/*: add trivial defaultText for options with simple defaults 2021-12-02 22:35:04 +01:00
smartdns.nix
smokeping.nix nixos/*: add trivial defaultText for options with simple defaults 2021-12-02 22:35:04 +01:00
sniproxy.nix nixos/sniproxy: remove unused logDir option 2022-01-07 22:40:12 +01:00
snowflake-proxy.nix nixos/snowflake-proxy: init 2022-03-04 08:41:38 -06:00
softether.nix
soju.nix nixos/*: add trivial defaultText for options with simple defaults 2021-12-02 22:35:04 +01:00
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 nixos/stubby: reduce to a settings-style configuration 2021-12-25 12:07:06 +01:00
stunnel.nix stunnel: allow servers to connect to other hosts 2022-01-07 17:54:01 +01:00
supplicant.nix wpa_supplicant: prevent writing non-writable configuration 2021-11-16 13:54:34 +01:00
supybot.nix
syncplay.nix nixos/syncplay: Switch to version without GUI 2022-04-13 23:58:51 +02:00
syncthing-relay.nix
syncthing.nix nixos/modules/syncthing: add 22000/udp to firewall 2022-01-18 11:40:06 +10:00
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 Update nixos/modules/services/networking/teleport.nix 2022-01-11 10:39:00 +01:00
tetrd.nix nixos/tetrd: add to module list and fix enable description 2022-02-24 09:44:57 -08:00
tftpd.nix
thelounge.nix nixos/thelounge: private -> public 2022-01-10 11:28:41 +08:00
tinc.nix nixos/tinc: add mic92 maintainer 2022-01-05 19:29:01 +01:00
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 unifi5: Follow new mitigation guidelines 2021-12-17 15:55:13 -08:00
v2ray.nix
vsftpd.nix nixos/treewide: Add last missing option types 2022-02-28 22:50:06 +01:00
wasabibackend.nix treewide: set defaultText for options using simple path defaults 2021-12-09 01:12:13 +01:00
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 treewide: add defaultText for options with simple cfg.* expression defaults 2021-12-09 01:14:16 +01:00
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 nixos/xrdp: add missing defaultText 2021-12-29 20:12:02 +01:00
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