15 lines
284 B
Nix
15 lines
284 B
Nix
{ ... }:
|
|
let
|
|
opensshConfig = import ../config/openssh.nix;
|
|
usersWithKeys = opensshConfig.ssh_users;
|
|
|
|
in {
|
|
services.openssh = {
|
|
enable = true;
|
|
settings = {
|
|
PasswordAuthentication = true;
|
|
PermitRootLogin = "no";
|
|
AllowUsers = usersWithKeys;
|
|
};
|
|
};
|
|
}
|