aboutsummaryrefslogtreecommitdiff
path: root/modules/nixos/tools/git/default.nix
blob: f58ed623e6d109acead0807b3350334bb354f14e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{ options, config, lib, namespace, ... }:

with lib; with lib.${namespace}; let
  cfg = config.${namespace}.tools.git;
in {
  options.${namespace}.tools.git = with types; {
    enable = mkEnableOption "git";
  };

  config = mkIf cfg.enable {
    programs.git = {
      enable = true;
      prompt.enable = true;
    };
  };
}