Adding gitea support
This commit is contained in:
@@ -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" = {};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user