nixos-config/nixos/services/openssh.nix

21 lines
319 B
Nix
Raw Normal View History

2024-05-10 18:08:37 +05:00
{ config, ... }:
{
services.openssh = {
enable = true;
settings = {
PasswordAuthentication = false;
PermitRootLogin = "no";
AllowUsers = [
"lumin"
"forgejo"
];
};
listenAddresses = [
{
addr = "10.101.0.1";
port = 22;
}
];
2024-05-10 18:08:37 +05:00
};
}