user/git: move condition to secret

use work gitlab account only for work organizations
This commit is contained in:
Dmitriy Pleshevskiy 2023-04-03 23:51:18 +03:00
parent 89a8637e0e
commit 3c05b30c69
Signed by: pleshevskiy
GPG key ID: 79C4487B44403985
3 changed files with 3 additions and 10 deletions

View file

@ -10,18 +10,11 @@
key = "43669288EC334989"; key = "43669288EC334989";
signByDefault = true; signByDefault = true;
}; };
includes = [ includes =
# My main account was suspended due to sanctions # My main account was suspended due to sanctions
{ import ./github.secret.nix
condition = "hasconfig:remote.*.url:git@github.com:**/**";
contents = import ./github.secret.nix;
}
# Work account # Work account
{ ++ import ./gitlab.secret.nix;
condition = "hasconfig:remote.*.url:git@gitlab.com:**/**";
contents = import ./gitlab.secret.nix;
}
];
ignores = [ ".nlsp-settings" ]; ignores = [ ".nlsp-settings" ];
extraConfig = { extraConfig = {
init.defaultBranch = "main"; init.defaultBranch = "main";

Binary file not shown.

Binary file not shown.