nixcfg/modules/home/tools/ssh/default.nix
Harald Hoyer d7770bfb0c chore: nix fmt
Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
2024-01-12 14:24:24 +01:00

25 lines
413 B
Nix

{ 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 {
home.packages = with pkgs; [
mosh
];
programs.ssh = {
enable = true;
extraConfig = ''
Host *
HostKeyAlgorithms +ssh-rsa
'';
};
};
}