From 7838ace3ac1bdf0706427c3eafff8214ec1cdd9b Mon Sep 17 00:00:00 2001 From: Don Harper Date: Fri, 6 Jun 2025 10:50:35 -0500 Subject: [PATCH] home/common | add ssh config --- home/common/default.nix | 1 + home/common/ssh.nix | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 home/common/ssh.nix diff --git a/home/common/default.nix b/home/common/default.nix index 8ec28e7..1c73db2 100644 --- a/home/common/default.nix +++ b/home/common/default.nix @@ -16,6 +16,7 @@ ./mopidy.nix ./neovim.nix ./newsboat.nix + ./ssh.nix ./taskwarrior.nix ./topgrade.nix ./tmux.nix diff --git a/home/common/ssh.nix b/home/common/ssh.nix new file mode 100644 index 0000000..69c4e5c --- /dev/null +++ b/home/common/ssh.nix @@ -0,0 +1,28 @@ +{ ... }: { + programs = { + ssh = { + enable = true; + compression = true; + hashKnownHosts = true; + matchBlocks = { + "git" = { + port = 2020; + identityFile = "/home/don/.ssh/git"; + }; + "github.com" = { + identityFile = "/home/don/.ssh/git"; + }; + "gitlab.com" = { + identityFile = "/home/don/.ssh/git"; + }; + "homeassistant.home.duckland.org" = { + user = "root"; + }; + "dreamhost" = { + user = "duck"; + hostname = "wise.dreamhost.com"; + }; + }; + }; + }; +}