1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-24 18:00:58 +01:00
home-manager/tests/modules/programs/jrnl/jrnl-basic-settings.nix
Austin Horstman 2ed842c9ff tests/jrnl: add tests
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-11-22 12:35:42 -06:00

32 lines
734 B
Nix

{
programs.jrnl = {
enable = true;
settings = {
journals = {
default = "~/journals/journal.txt";
work = "~/journals/work.txt";
};
colors = {
body = "none";
date = "green";
tags = "yellow";
title = "cyan";
};
default_hour = 9;
default_minute = 0;
editor = "vim";
encrypt = false;
highlight = true;
indent_character = "|";
linewrap = 80;
tagsymbols = "@";
template = false;
timeformat = "%Y-%m-%d %H:%M";
};
};
nmt.script = ''
assertFileExists home-files/.config/jrnl/jrnl.yaml
assertFileContent home-files/.config/jrnl/jrnl.yaml ${./jrnl-basic-settings-expected.yaml}
'';
}