System/nixos/modules/ssh.nix

16 lines
211 B
Nix

{
config,
lib,
pkgs,
...
}: {
services.openssh = {
enable = true;
settings = {
PermitRootLogin = "no";
PasswordAuthentication = false;
};
};
programs.mosh.enable = true;
}