2025-07-20 01:23:48 +02:00
|
|
|
{ lib, ... }:
|
|
|
|
let
|
2025-04-09 15:31:18 +02:00
|
|
|
inherit (lib.options) mkEnableOption;
|
2025-07-20 01:23:48 +02:00
|
|
|
in
|
|
|
|
{
|
2024-05-15 00:14:59 +02:00
|
|
|
options.modules.programs.ssh.enable = mkEnableOption "ssh";
|
2024-07-21 21:58:18 +02:00
|
|
|
config = {
|
|
|
|
services.openssh = {
|
|
|
|
enable = true;
|
2025-07-20 01:23:48 +02:00
|
|
|
ports = [ 22 ];
|
2024-07-21 21:58:18 +02:00
|
|
|
settings = {
|
|
|
|
PasswordAuthentication = false;
|
|
|
|
PermitRootLogin = "no";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-05-15 00:14:59 +02:00
|
|
|
}
|