From e6456d7f02b1b750dbfc444ebd63ab214bbff7e7 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Sat, 25 Feb 2023 11:25:20 -0500 Subject: [PATCH] ssh settings for sshd --- modules/nixos/services/sshd.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/nixos/services/sshd.nix b/modules/nixos/services/sshd.nix index 229a21c..825a9ee 100644 --- a/modules/nixos/services/sshd.nix +++ b/modules/nixos/services/sshd.nix @@ -17,11 +17,13 @@ services.openssh = { enable = true; ports = [ 22 ]; - passwordAuthentication = false; - gatewayPorts = "no"; - forwardX11 = false; allowSFTP = true; - permitRootLogin = config.permitRootLogin; + settings = { + GatewayPorts = "no"; + X11Forwarding = false; + PasswordAuthentication = false; + PermitRootLogin = config.permitRootLogin; + }; }; users.users.${config.user}.openssh.authorizedKeys.keys =