nixos/modules/server/openssh/default.nix

22 lines
375 B
Nix
Raw Normal View History

2024-05-25 01:32:48 +02:00
{ 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;
};
};
};
}