mirror of
https://github.com/nix-community/home-manager.git
synced 2026-10-02 19:49:18 +00:00
Allow path-backed hook bundles to provide both hooks.json and supporting scripts through programs.codex.hooks.
13 lines
225 B
Nix
13 lines
225 B
Nix
{
|
|
programs.codex = {
|
|
enable = true;
|
|
hooks = ./hooks.json;
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.codex/hooks.json
|
|
assertFileContent home-files/.codex/hooks.json \
|
|
${./hooks.json}
|
|
'';
|
|
}
|