feat(homes/rafiq): add note bash script to zk notes cli

This commit is contained in:
Mohammad Rafiq 2025-07-05 00:16:35 +08:00
parent 4b802b372e
commit df65236c27
No known key found for this signature in database

View file

@ -1,9 +1,19 @@
{ pkgs, ... }:
{ {
persistDirs = [ "notebook" ]; persistDirs = [ "notebook" ];
programs.zk = { programs.zk = {
enable = true; enable = true;
settings = { settings.notebook.dir = "~/notebook";
notebook.dir = "~/notebook";
};
}; };
home.packages = [
(pkgs.writeShellScriptBin "note" # bash
''
zk edit -i
pushd ~/notebook
git add .
commit
popd
''
)
];
} }