setting up media server
This commit is contained in:
parent
6792649772
commit
bc344e265e
4 changed files with 50 additions and 44 deletions
42
modules/home/git-conf.nix
Normal file
42
modules/home/git-conf.nix
Normal file
|
@ -0,0 +1,42 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.git = {
|
||||
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";
|
||||
};
|
||||
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";
|
||||
};
|
||||
};
|
||||
aliases = {
|
||||
co = "checkout";
|
||||
cm = "commit -m";
|
||||
aa = "add .";
|
||||
p = "push";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue