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 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 iscsi root initiator: allow specifying arbitrary iscsi commands too 2021-10-08 09:47:01 -04:00
jibri treewide: make option examples constant 2021-12-09 01:38:24 +01:00
keepalived nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
nghttpx nixos/modules: remove trailing whitespace 2020-08-07 14:45:39 +01:00
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 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: 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 nixos/antennas: initial service 2021-11-09 17:00:06 +01:00
aria2.nix nixos: remove dependencies on local-fs.target 2019-09-01 19:06:38 +02:00
asterisk.nix asterisk: Create symlinks for each config individually 2022-05-02 10:32:34 +00: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/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 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
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 nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
cloudflare-dyndns.nix nixos/cloudflare-dyndns: init 2022-05-01 16:50:31 -07:00
cntlm.nix nixos/cntlm: add types 2021-01-26 13:17:19 -08:00
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 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/*: 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 nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
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 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
envoy.nix nixos/envoy: init 2022-04-07 14:43:53 +00:00
epmd.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
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 nixos: add myself to maintainers 2019-12-04 17:09:53 +01:00
ferm.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
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 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 nixos/go-shadowsocks2: init 2019-10-06 11:18:20 +02:00
gobgpd.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02: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 nixos/haproxy: add reloading support, use upstream service hardening 2020-05-31 22:35:27 +02:00
headscale.nix headscale: Fix typo as per systemd.exec(5) 2022-04-18 02:00:29 +05:30
helpers.nix nixos: fix ip46tables invocation in nat 2019-12-14 20:13:12 -08:00
hostapd.nix nixos/hostapd: add interface type 2021-01-29 13:04:50 +01:00
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 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: workaround for race condition where wlan device disappears 2022-03-22 19:36:51 +08:00
jicofo.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
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 nixos/keybase, nixos/kbfs: update service configs; add redirector 2019-12-23 22:55:06 -08:00
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 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 nixos: remove dependencies on local-fs.target 2019-09-01 19:06:38 +02:00
lxd-image-server.nix nixos/logrotate: convert to freeform 2022-04-01 07:09:26 +09:00
magic-wormhole-mailbox-server.nix nixos/magic-wormhole-mailbox-server: moving from mail to networking 2020-03-31 16:29:39 +02: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 treewide: use attrs instead of list for types.loaOf options 2020-01-06 10:39:18 -05:00
monero.nix monero: rename to monero-cli 2021-11-28 11:35:14 +01:00
morty.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
mosquitto.md nixos/mosquitto: add module documentation 2021-10-28 08:44:32 +02:00
mosquitto.nix nixos/mosquitto: add package option 2022-01-19 15:59:53 +01:00
mosquitto.xml nixos/mosquitto: add module documentation 2021-10-28 08:44:32 +02:00
mozillavpn.nix mozillavpn: init at 2.7.1 2022-03-01 22:41:23 -08:00
mstpd.nix nixos/modules: remove trailing whitespace 2020-08-07 14:45:39 +01:00
mtprotoproxy.nix treewide: remove redundant quotes 2019-08-26 21:40:19 +00:00
mtr-exporter.nix mtr-exporter: init at 0.1.0 (3ce854a5) 2022-01-09 13:57:06 +01:00
mullvad-vpn.nix nixos/mullvad-vpn: fix firewall issues & remove xfix as maintainer 2021-07-13 11:14:13 +02:00
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 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
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 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 Merge pull request #166456 from mweinelt/isc-dhcp 2022-04-10 11:05:29 +01:00
nextdns.nix nixos/modules: fix systemd start rate-limits 2020-10-31 01:35:56 -07:00
nftables.nix nixos/nftables: Allow use with iptables (#121517) 2022-01-30 13:59:56 +01:00
ngircd.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
nix-serve.nix nixos/nix-serve: add openFirewall option 2022-01-17 15:14:02 -08:00
nix-store-gcs-proxy.nix nixos/modules: fix systemd start rate-limits 2020-10-31 01:35:56 -07:00
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/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 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 nixos/onedrive: init 2020-06-29 19:56:41 +05:30
openconnect.nix nixos/openconnect: add hardening flags 2022-04-10 14:19:22 +02:00
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/pdns-recursor: update default values 2022-04-14 17:31:16 +02:00
pdnsd.nix treewide: use attrs instead of list for types.loaOf options 2020-01-06 10:39:18 -05:00
pixiecore.nix nixos/users: require one of users.users.name.{isSystemUser,isNormalUser} 2021-04-14 20:40:00 +02:00
pleroma.nix nixos/pleroma: regenerate empty release cookie files 2022-03-17 15:22:14 +01:00
pleroma.xml nixos-docs: improved the installation instructions of Pleroma 2021-09-17 15:31:11 +02:00
polipo.nix treewide: use attrs instead of list for types.loaOf options 2020-01-06 10:39:18 -05:00
powerdns.nix pdns: rename from powerdns 2022-03-28 18:04:19 +02:00
pppd.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
pptpd.nix nixos/modules: Remove all usages of types.string 2019-08-31 18:19:00 +02:00
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 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 treewide: fold -> foldr 2021-01-26 10:57:07 +07:00
quorum.nix treewide: set defaultText for options using simple path defaults 2021-12-09 01:12:13 +01:00
radicale.nix nixos/radicale: specify systemd WorkingDirectory 2021-10-31 13:39:18 +01: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/*: add trivial defaultText for options with simple defaults 2021-12-02 22:35:04 +01:00
robustirc-bridge.nix nixos/modules/robustirc-bridge: init 2020-08-30 18:34:22 +02:00
rpcbind.nix
rxe.nix treewide: fix eval without aliases after 9378fdf87e 2021-04-08 13:33:09 +02:00
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 nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
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
shorewall6.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
shout.nix nixos/shout: define group, fix eval after #133166 2021-09-18 12:00:00 +00:00
skydns.nix nixos/*: add trivial defaultText for options with simple defaults 2021-12-02 22:35:04 +01:00
smartdns.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
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 nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
soju.nix nixos/*: add trivial defaultText for options with simple defaults 2021-12-02 22:35:04 +01: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 squid: 4.17 -> 5.4.1 2022-03-25 15:59:05 +00:00
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 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 nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
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 treewide: add types to boolean / enable options or make use of mkEnableOption 2020-04-27 09:32:01 +02:00
teamspeak3.nix nixos/teamspeak: add openFirewall, openFirewallServerQuery 2021-11-07 08:18:18 +01:00
tedicross.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
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 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 tox-node: fix config 2022-03-09 23:27:34 +03:00
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/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 Merge pull request #133700 from poscat0x04/v2ray-add-package-option 2021-10-08 12:38:15 +08:00
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 nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
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 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 treewide: add bool type to enable options, or make use of mkEnableOption 2020-04-21 08:55:36 +02:00
xl2tpd.nix nixos/modules: Remove all usages of types.string 2019-08-31 18:19:00 +02:00
xrdp.nix nixos/xrdp: add missing defaultText 2021-12-29 20:12:02 +01:00
yggdrasil.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
yggdrasil.xml nixos/yggdrasil: fix radvd example in manual 2022-02-05 23:20:08 +01:00
zerobin.nix zerobin: 20160108 -> 1.0.5 2021-03-13 13:06:06 +01:00
zeronet.nix treewide/meta: Remove chiiruno and replace with Madouura (#169096) 2022-04-18 02:13:36 +03:00
zerotierone.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00