mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
26 lines
571 B
Nix
26 lines
571 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
kw.fw.public.udp.ranges = [{
|
|
from = 60000;
|
|
to = 61000;
|
|
}];
|
|
kw.fw.private.udp.ranges = [{
|
|
from = 60000;
|
|
to = 61000;
|
|
}];
|
|
|
|
services.openssh = {
|
|
enable = true;
|
|
ports = lib.mkDefault [ 62954 ];
|
|
passwordAuthentication = false;
|
|
challengeResponseAuthentication = false;
|
|
permitRootLogin = lib.mkDefault "prohibit-password";
|
|
kexAlgorithms = [ "curve25519-sha256@libssh.org" ];
|
|
extraConfig = ''
|
|
StreamLocalBindUnlink yes
|
|
LogLevel VERBOSE
|
|
'';
|
|
};
|
|
programs.mosh.enable = true;
|
|
}
|