2022-12-11 01:55:34 +00:00
|
|
|
{ config
|
|
|
|
, proj_root
|
|
|
|
, myLib
|
|
|
|
, ...
|
|
|
|
}:
|
|
|
|
let cfg = config.base.ssh;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
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;
|
2022-12-26 10:42:14 +00:00
|
|
|
extraConfig = builtins.readFile "${proj_root.config.path}/ssh/config";
|
2022-12-11 01:55:34 +00:00
|
|
|
};
|
|
|
|
}
|
2022-12-11 01:58:30 +00:00
|
|
|
|