nixpkgs-suyu/nixos/modules/services
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
..
admin nixos/pgadmin: init 2022-02-26 14:30:14 +01:00
amqp
audio nixos/snapserver: don't open ports by default 2022-04-20 23:25:28 +02:00
backup nixos/zrepl: note about systemd unit, add snapshot test 2022-03-30 08:55:15 -07:00
blockchain/ethereum
cluster Merge pull request #154004 from illustris/hadoop 2022-03-16 14:05:56 +02:00
computing nixos/slurm: fix startup of slurmd 2022-01-31 23:08:55 +01:00
continuous-integration services.gitlab-runner: support runner description 2022-04-26 11:43:46 +02:00
databases couchdb3: 3.2.1 -> 3.2.2 2022-04-26 09:02:36 +00:00
desktops Merge pull request #163130 from xlambein/master 2022-04-18 19:55:31 +01:00
development Merge pull request #137335 from dsg22/feature-jupyter-create-system-user 2022-04-03 18:22:04 +01:00
display-managers
editors nixos/haste-server: add 2022-03-07 23:38:23 +01:00
finance
games Merge pull request #161226 from Misterio77/master 2022-03-29 14:17:01 +01:00
hardware Merge pull request #166321 from wentasah/usbrelay 2022-04-25 02:23:19 +02:00
home-automation nixos/zigbee2mqtt: move into home-automation category 2022-03-01 19:19:31 +01:00
logging nixos/logrotate: use packages from buildPackages in configuration checkPhase, fixing cross compilation 2022-04-16 10:22:39 +02:00
mail Merge pull request #167324 from alyssais/mailman-postfix 2022-04-20 16:34:43 +02:00
matrix nixos/matrix-synapse: fix typo in mkRemovedOptionModule replacementInstructions 2022-04-15 22:52:29 +02:00
misc Merge pull request #169310 from Xiami2012/zookeeper-jre 2022-05-02 10:51:42 +02:00
monitoring grafana-mimir: add initial module 2022-04-29 07:23:03 -04:00
network-filesystems nixos/ipfs: fix the services.ipfs.autoMigrate option 2022-04-16 07:38:13 -04:00
networking nixos/ssh: remove empty host key files before generating new ones 2022-05-03 22:09:43 -07:00
printing
scheduling
search Merge pull request #153596 from illustris/elasticsearch 2022-01-30 01:23:58 +01:00
security Merge pull request #165764 from notgne2/oauth2-proxy-group 2022-04-01 13:32:21 +02:00
system nixos/nscd: Fix lib.literalExample deprecation 2022-04-26 14:06:52 +02:00
torrent
ttys nixos/kmscon: Add fonts option 2022-04-18 15:56:34 +02:00
video nixos/unifi-video: add deprecation warning for openFirewall 2022-03-28 19:55:50 -07:00
wayland
web-apps Merge pull request #156163 from erdnaxe/galene_hardening 2022-04-28 10:52:00 +02:00
web-servers treewide/meta: Remove chiiruno and replace with Madouura (#169096) 2022-04-18 02:13:36 +03:00
x11 lxqt: add maintainers team 2022-05-01 13:03:21 -03:00