21 lines
341 B
Nix
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
|
||
|
'';
|
||
|
};
|
||
|
};
|
||
|
}
|