HackerTrans
TopNewTrendsCommentsPastAskShowJobs

guthriej

no profile record

comments

guthriej
·2 ปีที่แล้ว·discuss
Agree on your comment re build/templating and new language. Nix is weird and NixOS is complicated. Nonetheless I have convinced myself that I like it.

In TFA the author must set up two configurations: the .gitconfig, and the file which is included in the .gitconfig. Home-manager does this automatically through one config parameter. That is what I was pleased with and wanted to share.
guthriej
·2 ปีที่แล้ว·discuss
Thank you for this! I have exactly the same problem and was waiting for the solution to present itself, which it now has.

Aside: I use NixOS with home-manager (on linux and mac), which makes this trivial [1]. Added the following lines to my home-manager config:

  programs.git = {
    enable = true;
    ...
    includes = [
      {
        condition = "hasconfig:remote.*.url:[email protected]:<work>/**";
        contents = {
          user.email = "<work email>";
        };
      }
    ];
  }

[1]: https://nix-community.github.io/home-manager/options.xhtml#o...
guthriej
·2 ปีที่แล้ว·discuss
Reflow oven
guthriej
·2 ปีที่แล้ว·discuss
Martin Kleppmann (author of Designing Data-Intensive Applications) has a great article in the same vein: https://martin.kleppmann.com/2011/03/07/accounting-for-compu...