Add zk at home-manager level

This commit is contained in:
Andrea Ciceri 2024-09-20 21:26:56 +02:00
parent a394b9cefd
commit 3ff06fa2bc
Signed by: aciceri
SSH key fingerprint: SHA256:/AagBweyV4Hlfg9u092n8hbHwD5fcB6A3qhDiDA65Rg
2 changed files with 43 additions and 0 deletions

42
hmModules/zk/default.nix Normal file
View file

@ -0,0 +1,42 @@
{
programs.bat.enable = true;
programs.fzf.enable = true;
programs.zk = {
enable = true;
settings = {
notebook.dir = "~/notebook";
note = {
language = "en";
default-title = "Untitled";
filename = "{{id}}";
extension = "md";
template = "default.md";
};
group.journal = {
paths = [ "journal" ];
note = {
filename = "{{format-date now}}";
template = "journal.md";
};
};
format.markdown = {
hashtags = false;
colon-tags = true;
multiword-tags = false;
};
tool = {
pager = "less -FIRX";
fzf-preview = "bat --color always {-1}";
};
lsp.diagnostics = {
wiki-title = "hint";
dead-link = "error";
};
lsp.completion = {
note-label = "{{title-or-path}}";
note-filter-text = "{{title}} {{path}}";
note-detail = "{{filename-stem}}";
};
};
};
}

View file

@ -85,6 +85,7 @@
"calibre" "calibre"
"reinstall-magisk-on-lineage" "reinstall-magisk-on-lineage"
"vscode-server" "vscode-server"
"zk"
]; ];
extraGroups = [ ]; extraGroups = [ ];
backupPaths = [ ]; backupPaths = [ ];