nixos-config/modules/ssh.nix

11 lines
219 B
Nix

{ config, ... }:
{
services.openssh = {
enable = true;
permitRootLogin = "yes";
passwordAuthentication = false;
};
users.users.root.openssh.authorizedKeys.keys = config.sbruder.pubkeys.trustedKeys;
}