Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce zk to drive Zettelkasten #748

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions home-manager/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -182,4 +182,23 @@
"!.git"
];
};

# https://github.com/nix-community/home-manager/blob/release-24.05/modules/programs/zk.nix
programs.zk = {
enable = true;
settings = {
note = {
language = "en"; # Clarify to keep default en here, it will be used in slugs and date format
};

format.markdown = {
hashtags = true;
};

tool = {
# Because of I'm a beginner for mode editor....
# editor = lib.getExe pkgs.micro;
};
};
};
}
2 changes: 2 additions & 0 deletions home-manager/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@
# - argos-translate - can be closed in offline, but not yet enough accuracy
# - Apertium - does not support Japanese
translate-shell # `echo "$text" | trans en:ja`

zk # Support Zettelkasten method
])
++ (with homemade-pkgs; [
la
Expand Down