28 lines
407 B
Nix
28 lines
407 B
Nix
{
|
|
lib,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
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 ];
|
|
programs.ssh = {
|
|
enable = true;
|
|
extraConfig = ''
|
|
Host *
|
|
HostKeyAlgorithms +ssh-rsa
|
|
'';
|
|
};
|
|
};
|
|
}
|