System/nixos/modules/ssh.nix

17 lines
262 B
Nix

{
config,
lib,
pkgs,
...
}: {
services.openssh = {
enable = true;
settings = {
ciphers = ["chacha20-poly1305@openssh.com"];
PermitRootLogin = "no";
PasswordAuthentication = false;
};
};
programs.mosh.enable = true;
}