19 lines
399 B
Nix
19 lines
399 B
Nix
{ ... }: {
|
|
|
|
flake.nixosModules.openssh = { config, lib, ... }: {
|
|
|
|
config = {
|
|
|
|
services.openssh = {
|
|
enable = true;
|
|
openFirewall = lib.mkDefault true;
|
|
settings = {
|
|
PasswordAuthentication = false;
|
|
KbdInteractiveAuthentication = false;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|
|
|