user/git: move condition to secret
use work gitlab account only for work organizations
This commit is contained in:
parent
89a8637e0e
commit
3c05b30c69
3 changed files with 3 additions and 10 deletions
|
@ -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.
Loading…
Reference in a new issue