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

24 lines
397 B
Nix
Raw Normal View History

2022-12-11 01:55:34 +00:00
{ config
, proj_root
, myLib
2023-01-13 06:42:21 +00:00
, ...
2022-12-11 01:55:34 +00:00
}:
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;
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