pantheon/homes/x86_64-linux/rafiq/cli/utilities/zk.nix

19 lines
342 B
Nix

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