nix-dotfiles/modules/security.nix
Dennis db67a9d7e5 Feature email server (#14)
* formatting

* update

* add mailserver

* flake update
2024-01-02 16:30:08 +01:00

27 lines
560 B
Nix

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