27 lines
478 B
Nix
27 lines
478 B
Nix
{
|
|
pkgs,
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
lib.mkIf config.programs.ssh.enable {
|
|
home.packages = with pkgs; [tea];
|
|
programs = {
|
|
ssh = {
|
|
addKeysToAgent = "yes";
|
|
forwardAgent = true;
|
|
matchBlocks = {
|
|
"svartalbenheim.odie.intranet" = {
|
|
hostname = "svartalbenheim.odie.intranet";
|
|
identityFile = "~/.ssh/id_ed25519_local";
|
|
compression =false;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
services = {
|
|
ssh-agent.enable = true;
|
|
};
|
|
}
|