diff options
author | jjanzen <jjanzen@jjanzen.ca> | 2025-03-05 22:17:31 -0600 |
---|---|---|
committer | jjanzen <jjanzen@jjanzen.ca> | 2025-03-05 22:17:31 -0600 |
commit | e6edbad14d8255743c7b259a1985db5fb5bd4e91 (patch) | |
tree | ab535ebf7942b3935b8ec35158291c09226faf73 /macos.local/flake/home/programs/ssh.nix.org | |
parent | c1f8c535d59658dd29d199c62326b9436a489ecf (diff) |
system changes
Diffstat (limited to 'macos.local/flake/home/programs/ssh.nix.org')
-rw-r--r-- | macos.local/flake/home/programs/ssh.nix.org | 44 |
1 files changed, 44 insertions, 0 deletions
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 |