mirror of
https://github.com/nix-community/home-manager.git
synced 2026-10-02 19:49:18 +00:00
Normalize derived skills and hooks during builds, and defer plugin, marketplace, and rule validation outside evaluation.
19 lines
335 B
Nix
19 lines
335 B
Nix
{ realPkgs, ... }:
|
|
|
|
let
|
|
hooks = realPkgs.runCommand "codex-ifd-hooks-file" { } ''
|
|
echo '{"hooks": {}}' > "$out"
|
|
'';
|
|
in
|
|
{
|
|
programs.codex = {
|
|
enable = true;
|
|
hooks = "${hooks}";
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileContent home-files/.codex/hooks.json "${hooks}"
|
|
assertPathNotExists home-files/.codex/hooks
|
|
'';
|
|
}
|