nix-dotfiles/modules/security.nix
2023-12-29 20:54:12 +01:00

27 lines
489 B
Nix

# BIASED
{ config, lib, ... }:
{
config = {
services = lib.mkIf config.services.gitea.enable {
fail2ban = {
enable = true;
};
openssh = {
extraConfig = ''
Match User gitea
AllowAgentForwarding no
AllowTcpForwarding no
PermitTTY no
X11Forwarding no
'';
};
gitea.settings."ssh.minimum_key_sizes" = {
ECDSA = -1;
RSA = 4095;
};
};
};
}