From 032efd11a7b371a85ea49b51e623007aea6cc530 Mon Sep 17 00:00:00 2001 From: rogueking Date: Sat, 14 Mar 2026 21:13:48 -0700 Subject: [PATCH] added ssh key for armaros access to agent machines --- home-manager/commands/commands.nix | 20 ++++++++++++-------- hosts/armaros/configuration.nix | 2 +- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/home-manager/commands/commands.nix b/home-manager/commands/commands.nix index b0fc768..eba8ab2 100644 --- a/home-manager/commands/commands.nix +++ b/home-manager/commands/commands.nix @@ -203,15 +203,19 @@ in { enableDefaultConfig = false; matchBlocks = { - "*" = { - setEnv = { - TERM = "xterm-256color"; + "*" = + { + setEnv = { + TERM = "xterm-256color"; + }; + forwardAgent = false; + forwardX11 = false; + serverAliveInterval = 0; + serverAliveCountMax = 3; + } + // lib.optionalAttrs (hostname == "armaros") { + identityFile = "~/.ssh/agent-machines"; }; - forwardAgent = false; - forwardX11 = false; - serverAliveInterval = 0; - serverAliveCountMax = 3; - }; } // lib.optionalAttrs (hostname == "buildbox" || hostname == "ender-ml" || hostname == "armaros") { "192.168.8.109" = { diff --git a/hosts/armaros/configuration.nix b/hosts/armaros/configuration.nix index 793f14a..ca11495 100644 --- a/hosts/armaros/configuration.nix +++ b/hosts/armaros/configuration.nix @@ -72,7 +72,7 @@ services.xserver.enable = true; services.xserver.displayManager.lightdm.enable = true; services.xserver.desktopManager.xfce.enable = true; - services.xserver.windowManager.i3.enable = true; + #services.xserver.windowManager.i3.enable = true; # Configure keymap in X11 services.xserver.xkb = {