modules/config: init new module

Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
2025-05-04 16:58:22 +03:00
parent 6ae0a38f62
commit b55a50ada8
42 changed files with 220 additions and 280 deletions

View File

@ -1,5 +1,27 @@
{
{lib, ...}: {
environment.variables = {
LESS = "-R --mouse";
};
environment.ldso32 = null;
boot.tmp.cleanOnBoot = lib.mkDefault true;
services.openssh = {
settings.X11Forwarding = false;
settings.KbdInteractiveAuthentication = false;
settings.PasswordAuthentication = false;
settings.UseDns = false;
# unbind gnupg sockets if they exists
settings.StreamLocalBindUnlink = true;
# Use key exchange algorithms recommended by `nixpkgs#ssh-audit`
settings.KexAlgorithms = [
"curve25519-sha256"
"curve25519-sha256@libssh.org"
"diffie-hellman-group16-sha512"
"diffie-hellman-group18-sha512"
"sntrup761x25519-sha512@openssh.com"
];
};
}