Initial commit

This commit is contained in:
Charlotte Van Petegem 2020-02-06 19:53:43 +01:00
commit 4256a94080
22 changed files with 1179 additions and 0 deletions

29
programs/git/default.nix Normal file
View file

@ -0,0 +1,29 @@
{ config, lib, pkgs, ... }:
{
options.custom.git.email = lib.mkOption {
type = lib.types.str;
default = "charlotte@vanpetegem.me";
example = "charlotte@vanpetegem.me";
description = ''
Default email set in git config
'';
};
config.home-manager.users.charlotte = { pkgs, ... }: {
home.packages = [ pkgs.git-crypt ];
programs.git = {
enable = true;
extraConfig = {
branch = {
setupautorebase = "always";
};
};
ignores = [
"**/*.patch"
];
userEmail = config.custom.git.email;
userName = "Charlotte Van Petegem";
};
};
}