Adding gitea support

This commit is contained in:
Jordan Ashurst
2026-09-14 20:54:42 -07:00
parent 1ca1cd0df0
commit 201b29c16e
2 changed files with 33 additions and 12 deletions
+27 -10
View File
@@ -95,6 +95,29 @@
syntaxHighlighting.enable = true;
};
sops = {
age.keyFile = "/home/mask/.config/sops/age/keys.txt";
defaultSopsFile = ./secrets/secrets.yaml;
secrets = {
"github/token" = {};
"github/username" = {};
"gitlab/token" = {};
"gitea/token" = {};
"gitea/password" = {};
"gitea/username" = {};
};
templates = {
".git-credentials" = {
path = "${config.home.homeDirectory}/.git-credentials";
mode = "0600";
content = ''
https://${config.sops.placeholder."gitea/username"}:${config.sops.placeholder."gitea/token"}@git.centraldogma.site
https://${config.sops.placeholder."github/username"}:${config.sops.placeholder."github/token"}@github.com
'';
};
};
};
programs.git = {
enable = true;
settings = {
@@ -104,8 +127,11 @@
};
alias = {
#Add and commit
ac = "!git add $1 && git commit -m '$2'";
ac = "!git add $1 && git commit -m $2";
};
# credential-helper = {
#
# };
};
};
@@ -128,13 +154,4 @@
};
programs.home-manager.enable = true;
sops = {
age.keyFile = "/home/mask/.config/sops/age/keys.txt";
defaultSopsFile = ./secrets/secrets.yaml;
secrets = {
"github/token" = {};
"gitlab/token" = {};
};
};
}