mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-07 07:54:08 +09:00
25 lines
497 B
Nix
25 lines
497 B
Nix
{ inputs, pkgs, ... }:
|
|
{
|
|
imports = [ inputs.auth-keys-hub.nixosModules.auth-keys-hub ];
|
|
|
|
programs.ssh.startAgent = true;
|
|
|
|
services.openssh = {
|
|
enable = true;
|
|
openFirewall = true;
|
|
settings = {
|
|
PermitRootLogin = "no"; # Prevent root from SSH login
|
|
PasswordAuthentication = false;
|
|
KbdInteractiveAuthentication = true;
|
|
};
|
|
ports = [ 22 ];
|
|
};
|
|
|
|
programs.auth-keys-hub = {
|
|
enable = true;
|
|
github = {
|
|
users = [ "moons-14:moons" ];
|
|
};
|
|
};
|
|
}
|