2024-06-20 08:59:56 -05:00
|
|
|
{ config, lib, ... }:
|
2024-12-27 21:30:25 -06:00
|
|
|
with lib;
|
|
|
|
let
|
2024-06-20 08:59:56 -05:00
|
|
|
cfg = config.myHome.security.ssh;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.myHome.security.ssh = {
|
|
|
|
enable = mkEnableOption "ssh";
|
|
|
|
matchBlocks = mkOption {
|
|
|
|
type = types.attrs;
|
|
|
|
default = { };
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
programs.ssh = {
|
|
|
|
inherit (cfg) matchBlocks;
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|