nixfiles/profiles/sshd/sshd.nix
ChaotiCryptidz 184afea0ee idfk
2022-01-29 18:06:26 +00:00

15 lines
371 B
Nix

{ lib, ... }: {
services.openssh = {
enable = true;
passwordAuthentication = false;
kbdInteractiveAuthentication = lib.mkDefault false;
permitRootLogin = "prohibit-password";
kexAlgorithms = [ "curve25519-sha256@libssh.org" ];
extraConfig = ''
StreamLocalBindUnlink yes
LogLevel VERBOSE
'';
};
programs.mosh.enable = true;
}