Skip to content

Commit

Permalink
Add ssh client configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrw committed Aug 31, 2023
1 parent 2bc8a31 commit 5f00193
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions home/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ in
./neovim.nix
./nix-index.nix
./packages/simon.nix
./ssh.nix
./tmux.nix
./zoxide.nix
] ++ lib.optionals isLinux [
Expand Down
22 changes: 22 additions & 0 deletions home/ssh.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{ ... }:
{
programs.ssh = {
enable = true;
controlMaster = "auto";
controlPersist = "5m";
matchBlocks = {
"astoria" = {
user = "simon";
hostname = "astoria";
setEnv = {
LC_ALL = "C";
};
};
"pi3" = {
user = "pi";
hostname = "pi3";
identityFile = "~/.ssh/id_ed25519";
};
};
};
}

0 comments on commit 5f00193

Please sign in to comment.