dotfiles/nix-conf/home-manager/base/ssh.nix

23 lines
384 B
Nix
Raw Permalink Normal View History

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;
includes = ["${proj_root.config.path}/ssh/config"];
2022-12-11 01:55:34 +00:00
};
}