feat(git): add config for https github
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
87d99ffbb2
commit
965466bf7e
1 changed files with 11 additions and 30 deletions
|
@ -2,7 +2,13 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
self,
|
self,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
|
mkRemoteConf = remote: email: name: {
|
||||||
|
condition = "hasconfig:remote.*.url:${remote}:*/**";
|
||||||
|
contents.user = {inherit email name;};
|
||||||
|
};
|
||||||
|
mkDefaultRemote = remote: mkRemoteConf remote "matt@nelim.org" "matt1432";
|
||||||
|
in {
|
||||||
programs = {
|
programs = {
|
||||||
git = {
|
git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -11,36 +17,11 @@
|
||||||
includes = [
|
includes = [
|
||||||
{path = toString self.legacyPackages.${pkgs.system}.dracula.git;}
|
{path = toString self.legacyPackages.${pkgs.system}.dracula.git;}
|
||||||
|
|
||||||
{
|
(mkDefaultRemote "https://github.com")
|
||||||
# FIXME: add https config
|
(mkDefaultRemote "git@github.com")
|
||||||
condition = "hasconfig:remote.*.url:git@github.com:*/**";
|
(mkDefaultRemote "git@git.nelim.org")
|
||||||
contents = {
|
|
||||||
user = {
|
|
||||||
email = "matt@nelim.org";
|
|
||||||
name = "matt1432";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
(mkRemoteConf "git@gitlab.info.uqam.ca" "gj591944@ens.uqam.ca" "Mathis Hurtubise")
|
||||||
condition = "hasconfig:remote.*.url:git@git.nelim.org:*/**";
|
|
||||||
contents = {
|
|
||||||
user = {
|
|
||||||
email = "matt@nelim.org";
|
|
||||||
name = "matt1432";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
|
||||||
condition = "hasconfig:remote.*.url:git@gitlab.info.uqam.ca:*/**";
|
|
||||||
contents = {
|
|
||||||
user = {
|
|
||||||
email = "gj591944@ens.uqam.ca";
|
|
||||||
name = "Mathis Hurtubise";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
|
|
||||||
delta = {
|
delta = {
|
||||||
|
|
Loading…
Reference in a new issue