fix erroneous output warning, remove vscode json file from check

vscode json files allow comments, but check-json only allows regular
json. the check now ignores settings.json

moves inherit for outputs to the let, as it was attempting to output the
outputs variable.

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
ahuston-0 2024-05-19 23:44:59 -04:00 committed by Alice Huston
parent af7a901bbf
commit 262c18e03b
2 changed files with 6 additions and 2 deletions

View File

@ -24,7 +24,11 @@ forEachSystem (system: {
statix.enable = false;
# json hooks
check-json.enable = true;
check-json = {
enable = true;
# exclude vscode json files as they allow comments and check-json doesn't
excludes = [ "settings.json$" ];
};
# git hooks
check-merge-conflicts.enable = true;

View File

@ -154,9 +154,9 @@
}
);
inherit (lib.rad-dev.systems) genSystems;
inherit (self) outputs; # for hydra
in
rec {
inherit (self) outputs; # for hydra
inherit lib; # for allowing use of custom functions in nix repl
hydraJobs = import ./hydra/jobs.nix { inherit inputs outputs; };