Initial commit
This commit is contained in:
commit
4256a94080
22 changed files with 1179 additions and 0 deletions
29
programs/git/default.nix
Normal file
29
programs/git/default.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue