From 9cd1661a14b232b5cc0e7ed1d1556a2f2203506e Mon Sep 17 00:00:00 2001 From: Jacob Janzen Date: Sun, 15 Dec 2024 21:41:05 -0600 Subject: migrate brew to nix --- macos.local/.flake/home/programs/ssh.nix.org | 37 ++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 macos.local/.flake/home/programs/ssh.nix.org (limited to 'macos.local/.flake/home/programs/ssh.nix.org') diff --git a/macos.local/.flake/home/programs/ssh.nix.org b/macos.local/.flake/home/programs/ssh.nix.org new file mode 100644 index 0000000..09eb34f --- /dev/null +++ b/macos.local/.flake/home/programs/ssh.nix.org @@ -0,0 +1,37 @@ +#+title: SSH Configuration + +#+begin_src nix + { config, pkgs, ... }: + { + programs.ssh = { + enable = true; + addKeysToAgent = "yes"; + matchBlocks = { + "*" = { + identityFile = "~/.ssh/id_ed25519"; + extraOptions = { + "UseKeychain" = "yes"; + }; + }; + "aviary" = { + hostname = "aviary.cs.umanitoba.ca"; + user = "janzenj2"; + }; + "jjanzen.ca" = { + setEnv = { + "TERM" = "xterm"; + }; + }; + "oracle" = { + setEnv = { + "TERM" = "xterm"; + }; + hostname = "jjanzen.ca"; + identityFile = "~/.ssh/oracle"; + identitiesOnly = true; + user = "opc"; + }; + }; + }; + } +#+end_src -- cgit v1.2.3