25 lines
409 B
Nix
25 lines
409 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
|
||
|
'';
|
||
|
};
|
||
|
};
|
||
|
}
|