Add zk at home-manager level
This commit is contained in:
parent
a394b9cefd
commit
3ff06fa2bc
2 changed files with 43 additions and 0 deletions
42
hmModules/zk/default.nix
Normal file
42
hmModules/zk/default.nix
Normal 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}}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -85,6 +85,7 @@
|
||||||
"calibre"
|
"calibre"
|
||||||
"reinstall-magisk-on-lineage"
|
"reinstall-magisk-on-lineage"
|
||||||
"vscode-server"
|
"vscode-server"
|
||||||
|
"zk"
|
||||||
];
|
];
|
||||||
extraGroups = [ ];
|
extraGroups = [ ];
|
||||||
backupPaths = [ ];
|
backupPaths = [ ];
|
||||||
|
|
Loading…
Add table
Reference in a new issue