1
0
Fork 0
nixos-config/host-common/init_ssh.nix
2018-04-02 17:52:16 +02:00

17 lines
353 B
Nix

{ 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;
};
};
}