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";
signByDefault = true;
};
includes = [
includes =
# My main account was suspended due to sanctions
{
condition = "hasconfig:remote.*.url:git@github.com:**/**";
contents = import ./github.secret.nix;
}
import ./github.secret.nix
# Work account
{
condition = "hasconfig:remote.*.url:git@gitlab.com:**/**";
contents = import ./gitlab.secret.nix;
}
];
++ import ./gitlab.secret.nix;
ignores = [ ".nlsp-settings" ];
extraConfig = {
init.defaultBranch = "main";

Binary file not shown.

Binary file not shown.