refactor(zk): clean up and simplify zk module
check / lint (push) Successful in 15s

This commit is contained in:
2026-08-23 13:56:53 +02:00
parent 3c97d0a21f
commit 028a6611d2
5 changed files with 19 additions and 38 deletions
+6 -15
View File
@@ -13,8 +13,7 @@ in
enable = lib.mkEnableOption "zettelkasten";
path = lib.mkOption {
type = lib.types.str;
default = config.home.homeDirectory + "/.zk";
description = "Path to the zettelkasten directory";
default = "${config.home.homeDirectory}/.zk";
};
};
@@ -24,21 +23,13 @@ in
packages = [
(pkgs.writeShellApplication {
name = "zk";
runtimeInputs = with pkgs; [ tmux ];
runtimeInputs = with pkgs; [
tmux
gh
];
runtimeEnv.ZK_PATH = cfg.path;
text = builtins.readFile ./scripts/zk.sh;
})
(pkgs.writeShellApplication {
name = "save-zk";
runtimeInputs = with pkgs; [ git ];
text = builtins.readFile ./scripts/save-zk.sh;
})
(pkgs.writeShellApplication {
name = "setup-zk";
runtimeInputs = with pkgs; [ gh ];
text = builtins.readFile ./scripts/setup-zk.sh;
})
];
};
};