nixos-config/modules/ssh.nix
2020-08-22 17:44:39 +02:00

17 lines
249 B
Nix

{ ... }:
let
pubkeys = import ./pubkeys.nix;
in
{
services.openssh = {
enable = true;
permitRootLogin = "yes";
passwordAuthentication = false;
};
users.users.root.openssh.authorizedKeys.keys = [
pubkeys."simon@kipf"
];
}