Initial commit, nodes are mostly done, panel is WIP
This commit is contained in:
aloslider committed 2026-11-17 10:47:39 +03:00
commit 67b1571e28
73 files changed
+3410

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
{ config, lib, ... }:
let
cfg = config.vps.ssh;
in
{
options.vps.ssh = {
public = lib.mkEnableOption "SSH on the public interface";
};
config = {
services.openssh = {
enable = cfg.public;
ports = [ 22 ];
settings = {
PasswordAuthentication = false;
PermitEmptyPasswords = false;
KbdInteractiveAuthentication = false;
PermitRootLogin = "no";
PubkeyAuthentication = true;
};
};
};
}