feat(home): add Gitea CLI

This commit is contained in:
2026-09-27 20:59:21 +02:00
parent 0252eec4f0
commit f530dfea50
6 changed files with 67 additions and 13 deletions
+7 -9
View File
@@ -1,17 +1,18 @@
{
config,
lib,
pkgs,
dotsPath,
...
}:
{
options.git = {
enable = lib.mkEnableOption "git";
github.enable = lib.mkEnableOption "Github CLI";
gitlab.enable = lib.mkEnableOption "Gitlab CLI";
};
imports = [
./gitea.nix
./github.nix
./gitlab.nix
];
options.git.enable = lib.mkEnableOption "git";
config = lib.mkIf config.git.enable {
assertions = [
@@ -26,8 +27,5 @@
".gitconfig.work".source = dotsPath + "/.gitconfig.work";
".gitignore".source = dotsPath + "/.gitignore";
};
programs.gh.enable = config.git.github.enable;
home.packages = lib.optionals config.git.gitlab.enable [ pkgs.glab ];
};
}