nixcfg/modules/home/tools/ssh/default.nix
2024-01-11 10:31:04 +00:00

21 lines
341 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 {
programs.ssh = {
extraConfig = ''
Host *
HostKeyAlgorithms +ssh-rsa
'';
};
};
}