From 5f001936163655191b234ce3e8e9a3e531a66ac6 Mon Sep 17 00:00:00 2001 From: Simon Walker Date: Thu, 31 Aug 2023 12:14:23 +0100 Subject: [PATCH] Add ssh client configuration --- home/home.nix | 1 + home/ssh.nix | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 home/ssh.nix diff --git a/home/home.nix b/home/home.nix index dbc6b143..8dcb6759 100644 --- a/home/home.nix +++ b/home/home.nix @@ -28,6 +28,7 @@ in ./neovim.nix ./nix-index.nix ./packages/simon.nix + ./ssh.nix ./tmux.nix ./zoxide.nix ] ++ lib.optionals isLinux [ diff --git a/home/ssh.nix b/home/ssh.nix new file mode 100644 index 00000000..df92017c --- /dev/null +++ b/home/ssh.nix @@ -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"; + }; + }; + }; +}