summaryrefslogtreecommitdiff
path: root/modules/home-manager/personal/programs/git.nix
blob: 578f6a7e70c5c5e8733e203d4ecc28e57f08bacf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ lib, pkgs, ... }:

{
  programs.git = {
    userName = lib.mkDefault "Quentin Aristote";
    userEmail = lib.mkDefault "quentin@aristote.fr";

    ignores = builtins.map builtins.readFile
      (with pkgs.personal.static.gitignore; [ direnv emacs linux ])
      ++ [
        # Personal rules
        ''
          # Nix
          shell.nix
          .nix-gc-roots
          .tmp
          result
        ''
      ];
  };
}