1
0
Fork 0
nixos-config/host-common/init_ssh.nix

17 lines
353 B
Nix
Raw Normal View History

2018-02-08 22:16:23 +00:00
{ config, pkgs, ... }:
{
boot.initrd.network = {
enable = true;
ssh = {
enable = true;
authorizedKeys = config.users.users.root.openssh.authorizedKeys.keys;
# generate file with
# dropbearkey -t rsa -f /etc/nixos/boot_rsa
# nix-env -iA nixos.dropbear
hostRSAKey = /etc/nixos/local/boot_rsa;
};
};
}