nixos/modules/system/services/openssh.nix
Florian RICHER a425abee8b
All checks were successful
check / check (push) Successful in 32s
Refactor: Avoid use folder for one file
Fix #3
2025-01-29 21:48:43 +01:00

22 lines
No EOL
387 B
Nix

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