mirror of
https://github.com/tboerger/nixos-config
synced 2026-11-30 01:04:46 +01:00
45 lines
823 B
Nix
45 lines
823 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
options,
|
|
...
|
|
}:
|
|
with lib;
|
|
|
|
{
|
|
config = {
|
|
services = {
|
|
openssh = {
|
|
enable = true;
|
|
openFirewall = true;
|
|
|
|
settings = {
|
|
PermitRootLogin = "yes";
|
|
|
|
Ciphers = [
|
|
"chacha20-poly1305@openssh.com"
|
|
"aes256-gcm@openssh.com"
|
|
"aes256-ctr"
|
|
"aes128-gcm@openssh.com"
|
|
];
|
|
|
|
Macs = [
|
|
"umac-128-etm@openssh.com"
|
|
"hmac-sha2-256-etm@openssh.com"
|
|
"hmac-sha2-512-etm@openssh.com"
|
|
"hmac-sha2-512"
|
|
];
|
|
|
|
KexAlgorithms = [
|
|
"curve25519-sha256@libssh.org"
|
|
"diffie-hellman-group16-sha512"
|
|
"diffie-hellman-group18-sha512"
|
|
"curve25519-sha256"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|