diff --git a/modules/dgn-ssh.nix b/modules/dgn-ssh.nix index ede7bae..9bca405 100644 --- a/modules/dgn-ssh.nix +++ b/modules/dgn-ssh.nix @@ -35,23 +35,26 @@ { config, lib, ... }: let - inherit (lib) - mkEnableOption - mkIf; + inherit (lib) mkEnableOption mkIf; cfg = config.dgn-ssh; in { options.dgn-ssh = { - enable = mkEnableOption "ssh default configuration." // { default = true; }; + enable = mkEnableOption "ssh default configuration." // { + default = true; + }; }; config = mkIf cfg.enable { services.openssh = { enable = true; - settings.PasswordAuthentication = false; + settings = { + PasswordAuthentication = false; + KbdInteractiveAuthentication = false; + }; }; programs.mosh.enable = true;