1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-31 20:17:45 +00:00

Fix git creds, oops

This commit is contained in:
RGBCube 2024-04-30 12:56:08 +03:00
parent 1d4b925f86
commit db4696fc5f
No known key found for this signature in database

View file

@ -65,6 +65,8 @@
}) })
(let (let
inherit (self.disk.networking) domain;
gitHost = self.cube.networking.hostName; gitHost = self.cube.networking.hostName;
in homeConfiguration { in homeConfiguration {
programs.nushell.configFile.text = mkAfter '' programs.nushell.configFile.text = mkAfter ''
@ -76,7 +78,7 @@ in homeConfiguration {
"RGBCube/" + $user_and_repo "RGBCube/" + $user_and_repo
} }
git remote add origin ("https://git.${gitHost}/" + $user_and_repo) git remote add origin ("https://${gitHost}/" + $user_and_repo)
} }
''; '';
@ -84,7 +86,7 @@ in homeConfiguration {
package = pkgs.gitFull; package = pkgs.gitFull;
userName = "RGBCube"; userName = "RGBCube";
userEmail = "git@${gitHost}"; userEmail = "git@${domain}";
lfs = enabled; lfs = enabled;
@ -125,7 +127,7 @@ in homeConfiguration {
core.sshCommand = "ssh -i ~/.ssh/id"; core.sshCommand = "ssh -i ~/.ssh/id";
url."ssh://git@github.com/".insteadOf = "https://github.com/"; url."ssh://git@github.com/".insteadOf = "https://github.com/";
url."ssh://forgejo@${gitHost}:2222/".insteadOf = "https://git.${gitHost}/"; url."ssh://forgejo@${domain}:2222/".insteadOf = "https://git.${gitHost}/";
} (mkIf isDesktop { } (mkIf isDesktop {
commit.gpgSign = true; commit.gpgSign = true;
tag.gpgSign = true; tag.gpgSign = true;