nixos/modules/system/server/openssh/default.nix

22 lines
383 B
Nix
Raw Permalink Normal View History

2024-10-28 21:26:34 +01:00
{ config, lib, ... }:
with lib;
let
cfg = config.modules.system.server.openssh;
in
{
options.modules.system.server.openssh = {
enable = mkEnableOption ''
Enable openssh with my custom configurations
'';
};
config = mkIf cfg.enable {
services.openssh = {
enable = true;
settings = {
PasswordAuthentication = true;
};
};
};
}