mirror of
https://github.com/srid/nixos-config.git
synced 2026-05-10 00:25:57 +08:00
share git
This commit is contained in:
parent
980ea429d3
commit
c0799a3ba2
3 changed files with 27 additions and 24 deletions
|
|
@ -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
|
||||
];
|
||||
|
|
|
|||
2
home.nix
2
home.nix
|
|
@ -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.
|
||||
|
|
|
|||
48
home/git.nix
48
home/git.nix
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue