Distuingish between configurations and program modifications
This commit is contained in:
parent
964b294300
commit
1afb00a3de
27 changed files with 48 additions and 44 deletions
36
configurations/git/default.nix
Normal file
36
configurations/git/default.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{ 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 = with pkgs; [
|
||||
gitAndTools.gitflow
|
||||
git-crypt
|
||||
];
|
||||
programs.git = {
|
||||
enable = true;
|
||||
extraConfig = {
|
||||
branch = {
|
||||
setupautorebase = "always";
|
||||
};
|
||||
};
|
||||
ignores = [
|
||||
".envrc"
|
||||
"shell.nix"
|
||||
# Ruby dependencies in source tree
|
||||
"/vendor/rubygems"
|
||||
"**/*.patch"
|
||||
];
|
||||
userEmail = config.custom.git.email;
|
||||
userName = "Charlotte Van Petegem";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue