2022-12-11 01:55:34 +00:00
|
|
|
{
|
2023-06-18 00:46:31 +00:00
|
|
|
config,
|
|
|
|
proj_root,
|
|
|
|
myLib,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
cfg = config.base.ssh;
|
|
|
|
in {
|
2022-12-11 01:55:34 +00:00
|
|
|
options.base.ssh.enable = myLib.mkOption {
|
|
|
|
type = myLib.types.bool;
|
|
|
|
default = true;
|
|
|
|
example = false;
|
|
|
|
description = ''
|
|
|
|
Enables SSH
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
config.programs.ssh = {
|
|
|
|
inherit (cfg) enable;
|
|
|
|
forwardAgent = true;
|
2023-06-12 04:21:01 +00:00
|
|
|
includes = ["${proj_root.config.path}/ssh/config"];
|
2022-12-11 01:55:34 +00:00
|
|
|
};
|
|
|
|
}
|