From eb640190f4725f2eae447da85df06636dca92867 Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Sun, 18 Aug 2024 03:35:12 +0900 Subject: [PATCH] Introduce zk for Zettelkasten --- home-manager/common.nix | 19 +++++++++++++++++++ home-manager/packages.nix | 2 ++ 2 files changed, 21 insertions(+) diff --git a/home-manager/common.nix b/home-manager/common.nix index 58cc455f..2c3bf154 100644 --- a/home-manager/common.nix +++ b/home-manager/common.nix @@ -204,4 +204,23 @@ source = ../config/zellij; recursive = true; }; + + # 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; + }; + }; + }; } diff --git a/home-manager/packages.nix b/home-manager/packages.nix index 9abd6d83..dd9981f9 100644 --- a/home-manager/packages.nix +++ b/home-manager/packages.nix @@ -134,6 +134,8 @@ with pkgs; docker-compose fastfetch # active replacement of neofetch + + zk # Support Zettelkasten method ] ++ (with homemade-pkgs; [ la