From b8971c288c137657230e4ee7d6503509d04c2ddf Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Wed, 9 Feb 2022 10:19:26 -0800 Subject: fix ssh: groq -> simatime --- profiles/groq.nix | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'profiles') diff --git a/profiles/groq.nix b/profiles/groq.nix index a12a5a2..757b47b 100644 --- a/profiles/groq.nix +++ b/profiles/groq.nix @@ -1,12 +1,25 @@ { pkgs, lib, ... }: -{ +let + homedir = builtins.getEnv "HOME"; +in { imports = [ ../lib/common.nix ../lib/packages.nix - ../lib/ssh.nix ]; programs.git.userEmail = lib.mkOverride 10 "bsima@groq.com"; services.emacs.enable = true; + + # i use a separate passphrase-protected key for getting my personal git repos + # onto my groq machine + programs.ssh = { + enable = true; + matchBlocks."simatime.com" = { + hostname = "simatime.com"; + user = "git"; + identityFile = [ "${homedir}/.ssh/git@simatime.com" ]; + identitiesOnly = true; + }; + }; } -- cgit v1.2.3