nixpkgs/nixos/modules/system/boot
Emily d930466b77 nixos/initrd-ssh: switch from Dropbear to OpenSSH
Dropbear lags behind OpenSSH significantly in both support for modern
key formats like `ssh-ed25519`, let alone the recently-introduced
U2F/FIDO2-based `sk-ssh-ed25519@openssh.com` (as I found when I switched
my `authorizedKeys` over to it and promptly locked myself out of my
server's initrd SSH, breaking reboots), as well as security features
like multiprocess isolation. Using the same SSH daemon for stage-1 and
the main system ensures key formats will always remain compatible, as
well as more conveniently allowing the sharing of configuration and
host keys.

The main reason to use Dropbear over OpenSSH would be initrd space
concerns, but NixOS initrds are already large (17 MiB currently on my
server), and the size difference between the two isn't huge (the test's
initrd goes from 9.7 MiB to 12 MiB with this change). If the size is
still a problem, then it would be easy to shrink sshd down to a few
hundred kilobytes by using an initrd-specific build that uses musl and
disables things like Kerberos support.

This passes the test and works on my server, but more rigorous testing
and review from people who use initrd SSH would be appreciated!
2020-03-25 08:26:50 +00:00
..
loader grub: Update extraConfig example text (#79406) 2020-02-15 16:45:47 -05:00
binfmt.nix nixos/treewide: Move rename.nix imports to their respective modules 2019-12-10 02:51:19 +01:00
emergency-mode.nix
grow-partition.nix nixos/treewide: Move rename.nix imports to their respective modules 2019-12-10 02:51:19 +01:00
initrd-network.nix nixos/initrd-network: always run postCommands 2020-02-08 14:57:49 +01:00
initrd-ssh.nix nixos/initrd-ssh: switch from Dropbear to OpenSSH 2020-03-25 08:26:50 +00:00
kernel.nix Merge pull request #80114 from rnhmjoj/initrd 2020-03-16 20:04:24 +02:00
kernel_config.nix
kexec.nix treewide: remove redundant quotes 2019-08-26 21:40:19 +00:00
luksroot.nix boot.initrd.luks: adding a warning when using FIDO2 with kernel ≤ 5.4 2020-01-22 16:00:40 +01:00
modprobe.nix
networkd.nix nixos/networkd: respect systemd.network.links also with disabled systemd-networkd 2020-03-19 14:15:32 +01:00
pbkdf2-sha512.c
plymouth.nix plymouth: Add extra config field 2019-10-25 11:22:45 -04:00
resolved.nix nixos/resolved: add user systemd-resolve to group systemd-resolve 2019-11-25 10:46:28 +01:00
shutdown.nix
stage-1-init.sh nixos/stage-1: fix predictable interfaces names 2020-02-08 14:04:02 +01:00
stage-1.nix nixos/initrd-ssh: switch from Dropbear to OpenSSH 2020-03-25 08:26:50 +00:00
stage-2-init.sh Typo 2019-10-10 16:24:33 +02:00
stage-2.nix
systemd-lib.nix nixos/networkd: Add the RoutingPolicyRule-related options 2020-03-01 14:52:36 -08:00
systemd-nspawn.nix nixos/systemd-nspawn: use config.systemd.package 2019-12-21 17:19:26 +01:00
systemd-unit-options.nix nixos/systemd: Allow unit options to have multiple equal defs (#73024) 2019-11-08 15:45:44 +00:00
systemd.nix Merge pull request #59827 from oxij/nixos/suppress-systemd-units 2020-02-06 18:11:01 +01:00
timesyncd.nix nixos/timesyncd: add user systemd-timesync to group systemd-timesync 2019-11-25 10:46:28 +01:00
tmp.nix