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

24 lines
398 B
Nix
Raw Permalink Normal View History

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;
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