nixcfg/modules/home/tools/ssh/default.nix

28 lines
407 B
Nix
Raw Normal View History

{
lib,
config,
pkgs,
...
}:
2024-03-21 15:00:36 +01:00
let
inherit (lib) types mkEnableOption mkIf;
cfg = config.metacfg.tools.ssh;
in
{
options.metacfg.tools.ssh = {
enable = mkEnableOption "SSH";
};
config = mkIf cfg.enable {
home.packages = with pkgs; [ mosh ];
2024-03-21 15:00:36 +01:00
programs.ssh = {
enable = true;
extraConfig = ''
Host *
HostKeyAlgorithms +ssh-rsa
'';
};
};
}