summaryrefslogtreecommitdiff
path: root/components/programs/git.nix
blob: 10226b873a08060db2a20fb72fce139cb5296b8d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{lib, config, ...}: {
  options.git.enable = lib.mkEnableOption "Git CMS";

  config = lib.mkIf config.git.enable {
    programs.git = {
      enable = true;

      config = {
        init = {
          defaultBranch = "master";
        };
        core = {
          editor = "vim";
        };
      };
    };
  };
}