ssh cypher changes

This commit is contained in:
Chaos 2023-02-09 16:25:37 +00:00
parent 966828ba68
commit 8b7aa5c3c1
No known key found for this signature in database
3 changed files with 680 additions and 674 deletions

View file

@ -46,9 +46,8 @@
clusterLimit = 4; clusterLimit = 4;
outgoingAddressFamily = "dual"; outgoingAddressFamily = "dual";
}; };
in { in {
environment.etc."misskey.yml".text = (pkgs.lib.generators.toYAML {} misskeyConfig); environment.etc."misskey.yml".text = pkgs.lib.generators.toYAML {} misskeyConfig;
users.users."misskey" = { users.users."misskey" = {
isNormalUser = true; isNormalUser = true;

View file

@ -1,4 +1,10 @@
{ fetchurl, fetchgit, linkFarm, runCommand, gnutar }: rec { {
fetchurl,
fetchgit,
linkFarm,
runCommand,
gnutar,
}: rec {
offline_cache = linkFarm "offline" packages; offline_cache = linkFarm "offline" packages;
packages = [ packages = [
{ {

View file

@ -36,6 +36,7 @@
enable = true; enable = true;
port = 22; port = 22;
authorizedKeys = config.users.users.root.openssh.authorizedKeys.keys; authorizedKeys = config.users.users.root.openssh.authorizedKeys.keys;
ciphers = ["chacha20-poly1305@openssh.com" "aes256-gcm@openssh.com" "aes128-gcm@openssh.com" "aes256-ctr" "aes192-ctr" "aes128-ctr"];
hostKeys = ["/ssh_host_ed25519_key"]; hostKeys = ["/ssh_host_ed25519_key"];
}; };
postCommands = '' postCommands = ''