nixos/modules/server/openssh/default.nix
2024-05-27 19:45:14 +02:00

22 lines
No EOL
375 B
Nix

{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.modules.server.openssh;
in
{
options.modules.server.openssh = {
enable = mkEnableOption ''
Enable openssh with my custom configurations
'';
};
config = mkIf cfg.enable {
services.openssh = {
enable = true;
settings = {
PasswordAuthentication = true;
};
};
};
}