share git

This commit is contained in:
Sridhar Ratnakumar 2022-04-08 22:04:01 -04:00
parent 980ea429d3
commit c0799a3ba2
3 changed files with 27 additions and 24 deletions

View file

@ -118,6 +118,7 @@
home-manager.extraSpecialArgs = { inherit system inputs; };
home-manager.users.srid = { pkgs, ... }: {
imports = [
./home/git.nix
./home/tmux.nix
./home/neovim.nix
];

View file

@ -3,6 +3,7 @@ rec {
imports = [
inputs.nix-doom-emacs.hmModule
./home/tmux.nix
./home/git.nix
];
home.packages = with pkgs; [
@ -47,7 +48,6 @@ rec {
];
programs = {
git = import ./home/git.nix;
# Leaving this disabled, as it doesn't look like nix-doom-emacs is being
# maintained or kept up to date anymore.

View file

@ -1,26 +1,28 @@
{
# package = pkgs.gitAndTools.gitFull;
enable = true;
userName = "Sridhar Ratnakumar";
userEmail = "srid@srid.ca";
aliases = {
co = "checkout";
ci = "commit";
cia = "commit --amend";
s = "status";
st = "status";
b = "branch";
p = "pull --rebase";
pu = "push";
};
ignores = [ "*~" "*.swp" ];
extraConfig = {
init.defaultBranch = "master";
#core.editor = "nvim";
#protocol.keybase.allow = "always";
credential.helper = "store --file ~/.git-credentials";
pull.rebase = "false";
# For supercede
core.symlinks = true;
programs.git = {
# package = pkgs.gitAndTools.gitFull;
enable = true;
userName = "Sridhar Ratnakumar";
userEmail = "srid@srid.ca";
aliases = {
co = "checkout";
ci = "commit";
cia = "commit --amend";
s = "status";
st = "status";
b = "branch";
p = "pull --rebase";
pu = "push";
};
ignores = [ "*~" "*.swp" ];
extraConfig = {
init.defaultBranch = "master"; # based.
core.editor = "nvim";
#protocol.keybase.allow = "always";
credential.helper = "store --file ~/.git-credentials";
pull.rebase = "false";
# For supercede
core.symlinks = true;
};
};
}