System/nixos/modules/ssh.nix

18 lines
262 B
Nix
Raw Normal View History

2025-02-12 01:49:06 -05:00
{
config,
lib,
pkgs,
...
}: {
services.openssh = {
enable = true;
settings = {
ciphers = ["chacha20-poly1305@openssh.com"];
PermitRootLogin = "no";
PasswordAuthentication = false;
};
};
programs.mosh.enable = true;
}