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

25 lines
413 B
Nix
Raw Normal View History

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 {
home.packages = with pkgs; [
2024-01-12 12:12:55 +01:00
mosh
];
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
'';
};
};
}