From a6cb43ea6fc0a532c3f98e3ce7cda27ab14e4bd6 Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Fri, 5 Apr 2024 13:15:10 +0200 Subject: [PATCH] git: Authenticate to repohost with OAuth --- home-manager/modules/git/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/home-manager/modules/git/default.nix b/home-manager/modules/git/default.nix index e9d7130..444e04b 100644 --- a/home-manager/modules/git/default.nix +++ b/home-manager/modules/git/default.nix @@ -100,6 +100,13 @@ in oauthAuthURL = "/login/oauth/authorize"; oauthTokenURL = "/login/oauth/access_token"; }; + + "http://repohost.bedum.horus.nu" = { + oauthClientId = "b00b00f53f073f4b38f7c38b1b2a944bb5069d411552a9968f1fca1d3e60395d"; + oauthScopes = "read_repository write_repository"; + oauthAuthURL = "/oauth/authorize"; + oauthTokenURL = "/oauth/token"; + }; }; init = { defaultBranch = "main";