diff --git a/shared/services/openssh/default.nix b/shared/services/openssh/default.nix index ce14bd1..ded1f2f 100644 --- a/shared/services/openssh/default.nix +++ b/shared/services/openssh/default.nix @@ -23,28 +23,31 @@ in openssh = { enable = true; openFirewall = true; - permitRootLogin = "yes"; - ciphers = [ - "chacha20-poly1305@openssh.com" - "aes256-gcm@openssh.com" - "aes256-ctr" - "aes128-gcm@openssh.com" - ]; + settings = { + PermitRootLogin = "yes"; - macs = [ - "umac-128-etm@openssh.com" - "hmac-sha2-256-etm@openssh.com" - "hmac-sha2-512-etm@openssh.com" - "hmac-sha2-512" - ]; + Ciphers = [ + "chacha20-poly1305@openssh.com" + "aes256-gcm@openssh.com" + "aes256-ctr" + "aes128-gcm@openssh.com" + ]; - kexAlgorithms = [ - "curve25519-sha256@libssh.org" - "diffie-hellman-group16-sha512" - "diffie-hellman-group18-sha512" - "curve25519-sha256" - ]; + 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" + ]; + }; }; }; };