1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-15 07:39:46 +01:00
home-manager/tests/modules/programs/zk/zk.nix

31 lines
614 B
Nix
Raw Normal View History

2023-09-11 20:50:12 +02: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"; };
};
};
test.stubs.zk = { };
nmt.script = ''
assertFileExists home-files/.config/zk/config.toml
assertFileContent home-files/.config/zk/config.toml ${./expected.toml}
'';
}