Files
infrastructure/machines/modules/sshd.nix
System administrator 1873a4658e [louise] misc
2023-11-13 20:46:58 +01:00

13 lines
313 B
Nix

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