From 8fb620284d7eb75f8545bafef1fc78fe7cbdc886 Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Mon, 7 Jul 2025 18:27:03 +0800 Subject: [PATCH] feat(nixos/ssh): add ssh config to home-manager --- nix/modules/ssh.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nix/modules/ssh.nix b/nix/modules/ssh.nix index 1adf4bc..b33254b 100644 --- a/nix/modules/ssh.nix +++ b/nix/modules/ssh.nix @@ -17,4 +17,12 @@ in } { users.users.root.openssh.authorizedKeys.keys = [ cfg.admin.pubkey ]; } ]; + flake.modules.homeManager.default = { + persistDirs = [ ".ssh" ]; + programs.ssh.enable = true; + programs.ssh.extraConfig = '' + Host * + SetEnv TERM=xterm-256color + ''; + }; }