2024-01-11 11:26:46 +01:00
|
|
|
{ lib, config, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
inherit (lib) types mkEnableOption mkIf;
|
|
|
|
cfg = config.plusultra.tools.ssh;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.plusultra.tools.ssh = {
|
|
|
|
enable = mkEnableOption "SSH";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
2024-01-12 14:24:24 +01:00
|
|
|
home.packages = with pkgs; [
|
2024-01-12 12:12:55 +01:00
|
|
|
mosh
|
2024-01-12 14:24:24 +01:00
|
|
|
];
|
2024-01-11 11:26:46 +01:00
|
|
|
programs.ssh = {
|
2024-01-12 12:12:55 +01:00
|
|
|
enable = true;
|
2024-01-11 11:26:46 +01:00
|
|
|
extraConfig = ''
|
|
|
|
Host *
|
|
|
|
HostKeyAlgorithms +ssh-rsa
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|