This commit is contained in:
2025-10-31 22:32:48 +09:00
parent c341059747
commit 75bbb51e1e
3 changed files with 31 additions and 18 deletions
+7 -9
View File
@@ -1,24 +1,22 @@
{ inputs, pkgs, ... }:
{
imports = [ inputs.auth-keys-hub.nixosModules.auth-keys-hub ];
programs.ssh.startAgent = true;
imports = [
inputs.auth-keys-hub.nixosModules.auth-keys-hub
];
services.openssh = {
enable = true;
openFirewall = true;
settings = {
PermitRootLogin = "no"; # Prevent root from SSH login
PermitRootLogin = "no";
PasswordAuthentication = false;
KbdInteractiveAuthentication = true;
KbdInteractiveAuthentication = false;
PubkeyAuthentication = "yes";
};
ports = [ 22 ];
};
programs.auth-keys-hub = {
enable = true;
github = {
users = [ "moons-14:moons" ];
};
github.users = [ "moons-14:${username}" ];
};
}