feat(vcs): add support for git-cliff

This commit is contained in:
2025-06-04 19:08:12 +02:00
parent f47962d025
commit 0f6e372345
3 changed files with 5 additions and 1 deletions

View File

@@ -12,6 +12,7 @@ in {
options.modules.vcs = {
git = {
enable = mkEnableOption "enables git";
cliff = mkEnableOption "enables git-cliff support";
sendmail = {
enable = mkOption {
type = types.bool;
@@ -94,7 +95,7 @@ in {
'');
modules = {
git = mkIf cfg.git.enable {
inherit (cfg.git) enable sendmail browser completeConfig emacs mergeTool;
inherit (cfg.git) enable cliff sendmail browser completeConfig emacs mergeTool;
inherit (cfg) email name editor;
publicKeyFile = cfg.publicKey.file;
};

View File

@@ -17,6 +17,7 @@ in {
type = types.str;
default = "Lucien Cartier-Tilet";
};
cliff = mkEnableOption "enables git-cliff support";
sendmail = {
enable = mkOption {
type = types.bool;
@@ -77,6 +78,7 @@ in {
};
config = lib.mkIf cfg.enable {
programs.git-cliff.enable = cfg.cliff;
programs.git = let
smtpEmail =
if (cfg.sendmail.user == null)