Init
Initial commit, nodes are mostly done, panel is WIP
This commit is contained in:
commit
6761a7c440
73 files changed
+3413
No files matched your search
@@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user