1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-03-14 20:56:36 +00:00
home-manager/tests/modules/programs/jrnl/example-config.nix

36 lines
736 B
Nix
Raw Normal View History

{ config, ... }:
{
programs.jrnl = {
enable = true;
package = config.lib.test.mkStubPackage { };
settings = {
colors = {
body = "none";
date = "black";
tags = "yellow";
title = "cyan";
};
default_hour = 23;
default_minute = 59;
editor = "nvim";
encrypt = false;
highlight = true;
indent_character = "|";
journals.default.journal = "/home/hm-user/jrnl/journal.txt";
linewrap = 79;
tagsymbols = "#@";
template = false;
timeformat = "%d. %h %Y %H:%M";
};
};
test.stubs.jrnl = { };
nmt.script = ''
assertFileContent \
home-files/.config/jrnl/jrnl.yaml \
${./example-config.yaml}
'';
}