mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-24 09:50:58 +01:00
This module generates a `.ssh/config` file. This doesn't embed _all_
options for the ssh client, but the most common ones should be there.
Example usage:
```nix
programs.ssh = {
enable = true;
forwardAgent = true;
controlMaster = "auto";
matchBlocks = [
{
host = "something.blah.edu";
port = 1024;
user = "cleague";
identitiesOnly = true;
}
{
host = "host1 host2 host2.net host2.com";
port = 7422;
hostname = "example.com";
serverAliveInterval = 60;
}
{
host = "lucian";
forwardX11 = true;
forwardX11Trusted = true;
checkHostIP = false;
};
};
};
```
Each entry in `programs.ssh.matchBlocks` must contain a `host` field,
which will be used for the block condition.
|
||
|---|---|---|
| .. | ||
| bash.nix | ||
| beets.nix | ||
| eclipse.nix | ||
| emacs.nix | ||
| firefox.nix | ||
| git.nix | ||
| gnome-terminal.nix | ||
| lesspipe.nix | ||
| ssh.nix | ||
| texlive.nix | ||