1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-27 12:19:48 +01:00
home-manager/tests/modules/programs/git-cliff/example-settings.nix

30 lines
520 B
Nix
Raw Normal View History

2023-05-05 19:25:28 +02:00
{ 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
''
}
'';
}