Files
dotfiles/modules/core/ssh.nix
T
2025-10-31 22:32:48 +09:00

23 lines
444 B
Nix

{ inputs, pkgs, ... }:
{
imports = [
inputs.auth-keys-hub.nixosModules.auth-keys-hub
];
services.openssh = {
enable = true;
openFirewall = true;
settings = {
PermitRootLogin = "no";
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
PubkeyAuthentication = "yes";
};
};
programs.auth-keys-hub = {
enable = true;
github.users = [ "moons-14:${username}" ];
};
}