From 944ccc9f11ab514e1babf47cd649bfe98aaf6a69 Mon Sep 17 00:00:00 2001 From: "Simon R. - fantomitechno" Date: Mon, 8 Jun 2026 16:22:59 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20git=20config=20is=20looking=20bette?= =?UTF-8?q?r=20than=20ever!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- home/git.nix | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/home/git.nix b/home/git.nix index b79f081..c4f4639 100644 --- a/home/git.nix +++ b/home/git.nix @@ -1,5 +1,4 @@ -{ ... }: - +{ config, ... }: { programs.git = { enable = true; @@ -13,5 +12,27 @@ color.ui = "auto"; push.autoSetupRemote = true; }; + + includes = [ + # hasconfig:remote.*.url:git@... + { + condition = "gitdir:${config.home.homeDirectory}/Flint/**"; + contents = { + user = { + name = "Simon Renoux"; + email = "simon.renoux@flint.si"; + }; + }; + } + { + condition = "gitdir:${config.home.homeDirectory}/Developpement/Polytech*/**"; + contents = { + user = { + name = "Simon Renoux"; + email = "simon.renoux@etu.univ-nantes.fr"; + }; + }; + } + ]; }; } -- 2.54.0