diff options
| author | Akshay Nair <phenax5@gmail.com> | 2021-02-17 23:30:14 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2021-02-17 23:30:14 +0530 |
| commit | 24589a4689ec7c4a3c722daeece04d76dd5b7f12 (patch) | |
| tree | 6b3953b88f75a60c34f79946d1ccfb3e5b030324 /modules/git.home.nix | |
| parent | 10ef9ed4d2594679c38c46703f863419c9f0ada4 (diff) | |
| download | nixos-config-24589a4689ec7c4a3c722daeece04d76dd5b7f12.tar.gz nixos-config-24589a4689ec7c4a3c722daeece04d76dd5b7f12.zip | |
Moves configuration around to modules
Diffstat (limited to 'modules/git.home.nix')
| -rw-r--r-- | modules/git.home.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/modules/git.home.nix b/modules/git.home.nix new file mode 100644 index 0000000..440a7d5 --- /dev/null +++ b/modules/git.home.nix @@ -0,0 +1,38 @@ +{ config, pkgs, ... }: +{ + programs.git = { + enable = true; + userEmail = "phenax5@gmail.com"; + userName = "Akshay Nair"; + ignores = [ + "tags" + ".vim.session" + "tags.lock" + "tags.temp" + ]; + aliases = { + ignore = "!gi() { curl -sL https://www.toptal.com/developers/gitignore/api/$@ ;}; gi"; + }; + extraConfig = { + "color" = { + "ui" = true; + }; + "color \"diff-highlight\"" = { + oldNormal = "red bold"; + oldHighlight = "red bold 52"; + newNormal = "green bold"; + newHighlight = "green bold 22"; + }; + "color \"diff\"" = { + meta = 11; + frag = "magenta bold"; + commit = "yellow bold"; + old = "red bold"; + new = "green bold"; + whitespace = "red reverse"; + }; + }; + #signing.key = "GPG-KEY-ID"; + #signing.signByDefault = true; + }; +} |
