Initial commit, nodes are mostly done, panel is WIP
This commit is contained in:
aloslider committed 2026-11-17 11:18:02 +03:00
commit 6761a7c440
73 files changed
+3413

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;
};
};
};
}