nichts/modules/services/ssh.nix

16 lines
324 B
Nix
Raw Normal View History

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