1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-03-09 18:26:54 +00:00
home-manager/tests/modules/programs/zk/zk.nix

27 lines
580 B
Nix
Raw Normal View History

2023-09-11 15:50:12 -03:00
{
programs.zk = {
enable = true;
settings = {
extra = { author = "Mickaël"; };
note = {
default-title = "Untitled";
extension = "md";
filename = "{{id}}-{{slug title}}";
id-case = "lower";
id-charset = "alphanum";
id-length = 4;
template = "default.md";
language = "en";
};
notebook = { dir = "~/notebook"; };
};
};
nmt.script = ''
assertFileExists home-files/.config/zk/config.toml
assertFileContent home-files/.config/zk/config.toml ${./expected.toml}
'';
}