News for hackers. Stuff that matters.
Re:How I configure my Git identities by SpaceNugget on Monday November 25, 2024 @06:14AM (#42235253)
That certainly looks less trivial than writing it directly in your .gitconfig file. It's the same condition and setting as what's in the article, but now with a build/templating stage and a new programming language to learn with unusual syntax.
Re:How I configure my Git identities by necovek on Monday November 25, 2024 @07:33AM (#42235720)
While I don't use NixOS or home-manager, I would imagine this provides some extra value: i.e. config is versioned or easy to move between machines.

Curiosity got the better of me so I looked it up at https://nix-community.github.io/home-manager/ and it indeed does purport to provide benefits I guessed at and then some.

Whether that's better than just manually managing things yourself is altogether a different matter.

Re:How I configure my Git identities by guthriej on Monday November 25, 2024 @05:44PM (#42240899)
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.