modularizing
This commit is contained in:
parent
8feca8cf94
commit
887f0b2bb1
7 changed files with 70 additions and 130 deletions
|
@ -1,42 +1,48 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.git = {
|
||||
home.packages = with pkgs; [
|
||||
# git-annex
|
||||
bfg-repo-cleaner
|
||||
delta
|
||||
];
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
lfs = {
|
||||
enable = true;
|
||||
lfs = {
|
||||
enable = true;
|
||||
};
|
||||
userEmail = "matt@emenel.ca";
|
||||
userName = "Matt Nish-Lapidus";
|
||||
ignores = [
|
||||
".DS_Store"
|
||||
];
|
||||
extraConfig = {
|
||||
core = {
|
||||
editor = "$EDITOR";
|
||||
pager = "${pkgs.delta}/bin/delta";
|
||||
};
|
||||
userEmail = "matt@emenel.ca";
|
||||
userName = "Matt Nish-Lapidus";
|
||||
ignores = [
|
||||
".DS_Store"
|
||||
];
|
||||
extraConfig = {
|
||||
core = {
|
||||
editor = "$EDITOR";
|
||||
pager = "${pkgs.delta}/bin/delta";
|
||||
};
|
||||
interactive = {
|
||||
diffFilter = "${pkgs.delta}/bin/delta --color-only";
|
||||
};
|
||||
delta = {
|
||||
navigate = true;
|
||||
dark = true;
|
||||
line-numbers = true;
|
||||
side-by-side = true;
|
||||
};
|
||||
merge = {
|
||||
conflictstyle = "zdiff3";
|
||||
};
|
||||
init = {
|
||||
defaultBranch = "main";
|
||||
};
|
||||
interactive = {
|
||||
diffFilter = "${pkgs.delta}/bin/delta --color-only";
|
||||
};
|
||||
aliases = {
|
||||
co = "checkout";
|
||||
cm = "commit -m";
|
||||
aa = "add .";
|
||||
p = "push";
|
||||
delta = {
|
||||
navigate = true;
|
||||
dark = true;
|
||||
line-numbers = true;
|
||||
side-by-side = true;
|
||||
};
|
||||
merge = {
|
||||
conflictstyle = "zdiff3";
|
||||
};
|
||||
init = {
|
||||
defaultBranch = "main";
|
||||
};
|
||||
};
|
||||
aliases = {
|
||||
co = "checkout";
|
||||
cm = "commit -m";
|
||||
a = "add .";
|
||||
p = "push";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue