aboutsummaryrefslogtreecommitdiff
path: root/macos.local/.flake/home/programs/ssh.nix.org
diff options
context:
space:
mode:
Diffstat (limited to 'macos.local/.flake/home/programs/ssh.nix.org')
-rw-r--r--macos.local/.flake/home/programs/ssh.nix.org37
1 files changed, 37 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..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