From d3ddc8df9a5fc09a74d5b11027d9e8c4bcac95fa Mon Sep 17 00:00:00 2001 From: osbm Date: Mon, 13 Jan 2025 22:55:09 +0300 Subject: [PATCH] add ssh config for ymir and tartarus --- modules/home.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/modules/home.nix b/modules/home.nix index 8df65a4..6a6baa3 100644 --- a/modules/home.nix +++ b/modules/home.nix @@ -19,6 +19,24 @@ userName = "osbm"; }; + programs.ssh = { + enable = true; + hashKnownHosts = true; + compression = true; + + matchBlocks = { + "tartarus" = { + hostname = "192.168.0.4"; + user = "osbm"; + identityFile = "/home/osbm/.ssh/id_ed25519"; + }; + "ymir" = { + hostname = "192.168.0.2"; + user = "osbm"; + identityFile = "/home/osbm/.ssh/id_ed25519"; + }; + }; + }; # This value determines the Home Manager release that your # configuration is compatible with. This helps avoid breakage # when a new Home Manager release introduces backwards