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 = ''