git-cliff: add module

This commit is contained in:
Nate Cox 2023-05-05 10:25:28 -07:00 committed by Robert Helgesson
parent 3f3fa731ad
commit 983f8a1bb9
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
8 changed files with 93 additions and 0 deletions

View file

@ -0,0 +1 @@
{ git-cliff-example-settings = ./example-settings.nix; }

View file

@ -0,0 +1,29 @@
{ config, lib, pkgs, ... }:
with lib;
{
programs.git-cliff = {
enable = true;
settings = {
header = "Changelog";
footer = "<!-- generated by git-cliff -->";
trim = true;
};
};
test.stubs.git-cliff = { };
nmt.script = ''
assertFileContent \
home-files/.config/git-cliff/cliff.toml \
${
builtins.toFile "expected.toml" ''
footer = "<!-- generated by git-cliff -->"
header = "Changelog"
trim = true
''
}
'';
}