mirror of
https://github.com/nix-community/home-manager
synced 2024-08-21 03:26:30 +02:00
30 lines
520 B
Nix
30 lines
520 B
Nix
|
{ 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
|
||
|
''
|
||
|
}
|
||
|
'';
|
||
|
}
|