This repository has been archived on 2024-05-02. You can view files and clone it, but cannot push or open issues or pull requests.
nixos-flake/modules/base/ssh/default.nix

10 lines
226 B
Nix

{ lib, config, ... }: lib.mkIf config.services.openssh.enable {
services.openssh = {
settings = {
PermitRootLogin = "prohibit-password";
PasswordAuthentication = false;
};
openFirewall = true;
};
}