mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-25 17:37:18 +08:00
start splitting
This commit is contained in:
parent
2c859d5704
commit
eea4ff4143
2 changed files with 25 additions and 24 deletions
25
home.nix
25
home.nix
|
|
@ -45,30 +45,7 @@ rec {
|
|||
];
|
||||
|
||||
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";
|
||||
#core.editor = "nvim";
|
||||
#protocol.keybase.allow = "always";
|
||||
credential.helper = "store --file ~/.git-credentials";
|
||||
pull.rebase = "false";
|
||||
};
|
||||
};
|
||||
git = import ./home/git.nix;
|
||||
|
||||
tmux = {
|
||||
enable = true;
|
||||
|
|
|
|||
24
home/git.nix
Normal file
24
home/git.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
# 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";
|
||||
};
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue