From e6edbad14d8255743c7b259a1985db5fb5bd4e91 Mon Sep 17 00:00:00 2001 From: jjanzen Date: Wed, 5 Mar 2025 22:17:31 -0600 Subject: system changes --- macos.local/flake/home/programs/ssh.nix.org | 44 +++++++++++++++++++++++++++++ 1 file changed, 44 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..28f779f --- /dev/null +++ b/macos.local/flake/home/programs/ssh.nix.org @@ -0,0 +1,44 @@ +#+title: SSH Configuration + +Configure SSH. Keys should be added to the SSH agent. Use the system keychain on all configurations. +#+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"; + setEnv = { + "TERM" = "xterm"; + }; + }; + + "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