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