20 lines
455 B
Nix
20 lines
455 B
Nix
{ ... }: {
|
|
|
|
flake.nixosModules.openssh = { config, lib, ... }: {
|
|
|
|
config = {
|
|
|
|
services.openssh = {
|
|
enable = true;
|
|
openFirewall = lib.mkDefault true;
|
|
settings = {
|
|
PermitRootLogin = lib.mkForce "no";
|
|
PasswordAuthentication = false;
|
|
KbdInteractiveAuthentication = false;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|
|
|