rework services & alacritty
move back to alacritty and install various services
This commit is contained in:
43
home/programs/zk.nix
Normal file
43
home/programs/zk.nix
Normal file
@@ -0,0 +1,43 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.zk = {
|
||||
enable = true;
|
||||
settings = {
|
||||
note.template = "default.md";
|
||||
format.markdow = {
|
||||
hashtags = true;
|
||||
colon-tags = false;
|
||||
multiword-tags = false;
|
||||
};
|
||||
tool.fzf-preview = "bat -p --color always {-1}";
|
||||
notebook = {
|
||||
dir = "~/zettelkasten"; # TODO: change location to Nextcloud
|
||||
};
|
||||
alias = {
|
||||
n = "zk new inbox/$@";
|
||||
i = "zk edit -x inbox,journals -i";
|
||||
ls = "zk list -x inbox,journals $@";
|
||||
ed = "zk edit -x inbox,journals $@";
|
||||
rm = ''zk list --interactive --quiet --format "{{abs-path}}" --delimiter0 $@ | xargs -0 rm -vf --'';
|
||||
recent = "zk edit --sort created- --created-after 'last two weeks' --interactive";
|
||||
inbox = "zk edit -t inbox --interactive";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
home.file = {
|
||||
"zettelkasten/.zk/templates/default.md" = {
|
||||
text = ''
|
||||
---
|
||||
title: {{ title }}
|
||||
date: {{format-date now "long"}}
|
||||
tags: [inbox]
|
||||
---
|
||||
# {{ title }}
|
||||
|
||||
{{ content }}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user