configure forgejo cli

This commit is contained in:
xunuwu 2025-06-08 11:15:13 +02:00
parent 4ab3b20d9f
commit 3e56f5ffe3
Signed by: xun
SSH key fingerprint: SHA256:Uot/1WoAjWAeqLOHA5vYy4phhVydsH7jCPmBjaPZfgI
3 changed files with 21 additions and 0 deletions

16
home/cli/forgejo.nix Normal file
View file

@ -0,0 +1,16 @@
{
pkgs,
vars,
...
}: {
home.packages = with pkgs; [codeberg-cli];
# most of these are default except for the url
xdg.configFile."berg-cli/berg.toml".source = (pkgs.formats.toml {}).generate "meli-config" {
base_url = "git.${vars.domain}";
protocol = "https";
no_color = false;
editor = "nvim";
max_width = 80;
};
}

View file

@ -3,6 +3,10 @@
pkgs, pkgs,
... ...
}: { }: {
home.packages = with pkgs; [
git-credential-oauth
];
programs.git = { programs.git = {
enable = true; enable = true;
delta.enable = true; delta.enable = true;

View file

@ -18,6 +18,7 @@
cli.gpg cli.gpg
cli.git cli.git
cli.github cli.github
cli.forgejo
cli.jujutsu cli.jujutsu
programs.nvim programs.nvim