From db2cf7a900104b5c7003b796bb3f4a9fee2e00b3 Mon Sep 17 00:00:00 2001 From: Alexander Heldt Date: Tue, 5 May 2026 12:53:44 +0200 Subject: [PATCH] pinwheel: Update `.ssh/config` on build --- hosts/pinwheel/modules/git/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/hosts/pinwheel/modules/git/default.nix b/hosts/pinwheel/modules/git/default.nix index aa0243b..ae17f47 100644 --- a/hosts/pinwheel/modules/git/default.nix +++ b/hosts/pinwheel/modules/git/default.nix @@ -15,7 +15,7 @@ in }; config = lib.mkIf enabled { - home-manager.users.alex = { + home-manager.users.alex = { lib, ... }: { programs.git = { enable = true; @@ -36,6 +36,13 @@ in }; }; + home.file.".ssh/config".target = ".ssh/config_source"; + + home.activation.sshConfig = lib.hm.dag.entryAfter [ "writeBoundary" ] '' + run cat ~/.ssh/config_source > ~/.ssh/config + run chmod 600 ~/.ssh/config + ''; + home.packages = [ pkgs.tig ]; home.file.".tigrc".text = ''