nixos-config/modules/ssh.nix

16 lines
252 B
Nix
Raw Normal View History

2020-08-22 17:44:39 +02:00
{ ... }:
let
pubkeys = import ./pubkeys.nix;
in
{
services.openssh = {
enable = true;
permitRootLogin = "yes";
passwordAuthentication = false;
};
users.users.root.openssh.authorizedKeys.keys = [
2020-10-16 15:32:48 +02:00
pubkeys."simon@nunotaba"
2020-08-22 17:44:39 +02:00
];
}