2023-04-01 00:33:43 +03:00
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
|
|
|
home.packages = [ pkgs.git-crypt ];
|
|
|
|
|
|
|
|
programs.git = {
|
|
|
|
enable = true;
|
|
|
|
userEmail = "dmitriy@pleshevski.ru";
|
|
|
|
userName = "Dmitriy Pleshevskiy";
|
|
|
|
signing = {
|
|
|
|
key = "43669288EC334989";
|
|
|
|
signByDefault = true;
|
|
|
|
};
|
2023-04-03 23:51:18 +03:00
|
|
|
includes =
|
2023-04-01 00:33:43 +03:00
|
|
|
# My main account was suspended due to sanctions
|
2023-04-03 23:51:18 +03:00
|
|
|
import ./github.secret.nix
|
2023-04-01 00:33:43 +03:00
|
|
|
# Work account
|
2023-04-03 23:51:18 +03:00
|
|
|
++ import ./gitlab.secret.nix;
|
2023-04-01 00:33:43 +03:00
|
|
|
ignores = [ ".nlsp-settings" ];
|
|
|
|
extraConfig = {
|
|
|
|
init.defaultBranch = "main";
|
|
|
|
pull.rebase = true;
|
|
|
|
};
|
|
|
|
aliases = {
|
|
|
|
co = "switch";
|
|
|
|
cob = "switch -c";
|
|
|
|
cobf = "switch -C";
|
|
|
|
st = "status -sb";
|
|
|
|
d = "diff";
|
|
|
|
dc = "diff --cached";
|
|
|
|
aa = "add .";
|
|
|
|
ai = "add -i";
|
|
|
|
c = "commit";
|
|
|
|
cm = "commit -m";
|
|
|
|
ca = "commit --amend";
|
|
|
|
cam = "commit --amend -m";
|
|
|
|
can = "commit --amend --no-edit";
|
|
|
|
p = "push";
|
|
|
|
po = "push origin";
|
|
|
|
pf = "push --force-with-lease";
|
|
|
|
pfo = "push --force-with-lease origin";
|
|
|
|
pl = "pull";
|
|
|
|
plo = "pull origin";
|
|
|
|
rb = "rebase";
|
|
|
|
rbi = "rebase -i";
|
|
|
|
rbc = "rebase --continue";
|
|
|
|
lo = "log --pretty=oneline";
|
|
|
|
sma = "submodule add";
|
|
|
|
smui = "submodule update --init";
|
2023-04-02 10:14:21 +03:00
|
|
|
s = "stash";
|
2023-04-01 00:33:43 +03:00
|
|
|
sm = "stash push -m";
|
|
|
|
sl = "stash list";
|
|
|
|
sa = "stash apply";
|
|
|
|
sai = "stash apply --index";
|
|
|
|
sp = "stash pop";
|
|
|
|
spi = "stash pop --index";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|