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";
|
||||
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.
Loading…
Reference in a new issue