Files
home-manager/tests/modules/programs/codex/hooks-file.nix
Austin Horstman 0d33882bd4 codex: support path-backed hooks
Allow path-backed hook bundles to provide both hooks.json and supporting scripts through programs.codex.hooks.
2026-07-06 12:20:20 -05:00

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}
'';
}