modularize git

This commit is contained in:
John Bowdre 2023-07-28 21:09:22 -05:00
parent 9b7f815a4a
commit 34355b6c1a
3 changed files with 17 additions and 16 deletions

View file

@ -3,6 +3,7 @@
imports = [
./direnv.nix
./git.nix
./fish.nix
./tmux.nix
./vim.nix

View file

@ -0,0 +1,16 @@
{ lib, ... }: {
programs.git = {
enable = lib.mkDefault true;
delta.enable = true;
aliases = {
graph = "log --decorate --oneline --graph";
fast-forward = "merge --ff-only";
};
userEmail = lib.mkDefault "john@bowdre.net";
userName = lib.mkDefault "John Bowdre";
extraConfig = {
init.defaultBranch = "main";
pull.rebase = false;
};
};
}

View file

@ -32,22 +32,6 @@
programs = {
home-manager.enable = true;
direnv = {
enable = lib.mkDefault true;
nix-direnv.enable = true;
};
git = {
enable = lib.mkDefault true;
delta.enable = true;
userEmail = lib.mkDefault "john@bowdre.net";
userName = lib.mkDefault "John Bowdre";
extraConfig = {
init.defaultBranch = "main";
pull.rebase = false;
};
};
};
targets.genericLinux.enable = true;