Files
infrastructure/machines/modules/sshd.nix
2022-10-04 19:20:14 +02:00

12 lines
261 B
Nix

{ config, lib, pkgs, ... }:
let
sshKeys = import ../ssh_keys.nix;
in
{
services.openssh.enable = true;
services.openssh.ports = [ 22 ];
services.openssh.passwordAuthentication = false;
users.users.root.openssh.authorizedKeys.keys = sshKeys.admins;
}