pi/services/openssh.nix
Katharina Heidenreich ecf10628c3 feat: try rework
2026-04-04 16:34:02 +02:00

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;
};
};
}