3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/modules
Alyssa Ross 262447705c nixos/ssh: add programs.ssh.knownHostsFiles option
The programs.ssh.knownHosts.*.publicKeyFile is broken, because it's
scoped to a set of host names, but to insert those host names on each
line of the file we'd have to parse out blank lines and comments, so
only the first line works.  It would be much easier all round if users
just provided known hosts files in the normal format, and we pointed
ssh directly to them.  This way, it would be possible to have multiple
keys for a single host (which is extremely common due to multiple
algorithms being commonplace).

We add an option for this instead of relying on extraConfig, because
we need to make sure /etc/ssh/ssh_known_hosts is always included to
ensure programs.ssh.knownHosts keeps working.
/etc/ssh/ssh_known_hosts2 is another OpenSSH default that seems a bit
weird, but there's no real reason to change that so we'll leave it.
2022-01-11 20:02:26 +00:00
..
config users-groups service: add autoSubUidGidRange option 2022-01-09 09:43:55 +03:00
hardware firmwareLinuxNonfree -> linux-firmware 2022-01-10 12:28:03 -03:00
i18n/input-method nixos/documentation: split options doc build 2022-01-02 19:46:13 +01:00
installer Merge pull request #125451 from zhaofengli/qemu-riscv64-sd-image 2022-01-07 22:14:05 +01:00
misc nixos/documentation: fix docs cross build 2022-01-08 16:03:23 +01:00
profiles all-hardware: Add virtio_mmio module 2022-01-06 17:23:10 -08:00
programs nixos/ssh: add programs.ssh.knownHostsFiles option 2022-01-11 20:02:26 +00:00
security nixos/acme: ensure web servers using certs can access them 2022-01-08 15:05:34 -05:00
services Merge pull request #154320 from abbradar/nscd-unit 2022-01-11 18:47:40 +01:00
system Merge pull request #125451 from zhaofengli/qemu-riscv64-sd-image 2022-01-07 22:14:05 +01:00
tasks Merge pull request #148637 from hexagonal-sun/network/gre-tap-tun 2022-01-01 17:04:29 +00:00
testing
virtualisation nixos/make-options-doc: turn relatedPackages into links 2022-01-02 19:46:13 +01:00
module-list.nix baget service: init 2022-01-11 19:54:54 +03:00
rename.nix couchpotato, nixos/couchpotato: remove 2022-01-02 13:38:11 +01:00