From 5bda7a8481d577210a096f48944577168e2c5f12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Fri, 25 Oct 2024 16:43:53 -0300 Subject: [PATCH] ssh: include private configs --- user/ssh.nix | 34 ++++++++++++++-------------------- 1 file changed, 14 insertions(+), 20 deletions(-) diff --git a/user/ssh.nix b/user/ssh.nix index 60649ba..4747bb4 100644 --- a/user/ssh.nix +++ b/user/ssh.nix @@ -1,26 +1,20 @@ -{ - config, - pkgs, - lib, - ... -}: -let - inherit (config.my) username mail; -in { config = { - programs.ssh.enable = true; - programs.ssh.matchBlocks = { - monolith = { - user = "lelgenio"; - hostname = "monolith.lelgenio.com"; - port = 9022; - }; - phantom = { - user = "root"; - hostname = "phantom.lelgenio.com"; - port = 9022; + programs.ssh = { + enable = true; + matchBlocks = { + monolith = { + user = "lelgenio"; + hostname = "monolith.lelgenio.com"; + port = 9022; + }; + phantom = { + user = "root"; + hostname = "phantom.lelgenio.com"; + port = 9022; + }; }; + includes = [ "~/Wopus/.ssh.config" ]; }; }; }