forked from kalipso/infrastructure
12 lines
261 B
Nix
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;
|
|
}
|