nichts/modules/services/ssh.mod.nix

15 lines
316 B
Nix

{lib, ...}: let
inherit (lib.options) mkEnableOption;
in {
options.modules.programs.ssh.enable = mkEnableOption "ssh";
config = {
services.openssh = {
enable = true;
ports = [22];
settings = {
PasswordAuthentication = false;
PermitRootLogin = "no";
};
};
};
}