nichts/modules/services/ssh.mod.nix

16 lines
316 B
Nix
Raw Normal View History

2024-11-01 13:49:42 +01:00
{lib, ...}: let
inherit (lib.options) mkEnableOption;
in {
options.modules.programs.ssh.enable = mkEnableOption "ssh";
2024-07-21 21:58:18 +02:00
config = {
services.openssh = {
enable = true;
2025-03-04 22:43:09 +01:00
ports = [22];
2024-07-21 21:58:18 +02:00
settings = {
PasswordAuthentication = false;
PermitRootLogin = "no";
};
};
};
}