fix vaultwarden

This commit is contained in:
Dennis Wuitz 2023-12-29 14:53:19 +01:00
parent 2c0468d049
commit 70e69fc869
2 changed files with 24 additions and 1 deletions

4
.gitignore vendored
View File

@ -1,5 +1,7 @@
.direnv
.envrc
.*.swp
*.retry
result
result-man
result-*

21
modules/security.nix Normal file
View File

@ -0,0 +1,21 @@
{ 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;
};
};
};
}