mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-28 00:05:00 +08:00
27 lines
584 B
Nix
27 lines
584 B
Nix
{ pkgs, lib, ... }:
|
|
{
|
|
programs.ssh = {
|
|
enable = true;
|
|
|
|
addKeysToAgent = "yes";
|
|
|
|
includes = [
|
|
"~/.orbstack/ssh/config" # https://docs.orbstack.dev/machines/ssh
|
|
];
|
|
|
|
# Note: More defined in juspay.nix
|
|
matchBlocks = {
|
|
"*" = {
|
|
setEnv = {
|
|
# https://ghostty.org/docs/help/terminfo#configure-ssh-to-fall-back-to-a-known-terminfo-entry
|
|
TERM = "xterm-256color";
|
|
};
|
|
};
|
|
pureintent = {
|
|
forwardAgent = true;
|
|
};
|
|
};
|
|
};
|
|
|
|
services.ssh-agent = lib.mkIf pkgs.stdenv.isLinux { enable = true; };
|
|
}
|