From 8567838f209ba860acc224cb1e5aa10f9d93ba43 Mon Sep 17 00:00:00 2001 From: muon Date: Sun, 29 Dec 2024 11:16:09 +0000 Subject: [PATCH] Change ssh auth --- modules/nixos/system/services.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/modules/nixos/system/services.nix b/modules/nixos/system/services.nix index 23c8388..9c6f158 100644 --- a/modules/nixos/system/services.nix +++ b/modules/nixos/system/services.nix @@ -1,3 +1,9 @@ -{ pkgs, lib, ... }: { - services.openssh.enable = true; +{ pkgs, lib, config, ... }: { + services.openssh = { + enable = true; + settings = { + PasswordAuthentication = false; + X11Forwarding = false; + }; + }; }