6 Commits

Author SHA1 Message Date
3522ebd8c5 applies all recommended deadnix fixes, and adds it to checks
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-05-22 00:02:47 +00:00
c0ca89728e revert statix fixes for empty_pattern
empty_pattern forces {...} to be converted to {_}, which breaks
situations where an import is done multiple ways with the same
attributes, and only some of the imported files use those
attributes (ex. systems/<host>/default.nix)

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-05-22 00:02:47 +00:00
1b65b78d13 fix all statix warnings and re-enable statix pre-commit
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-05-22 00:02:47 +00:00
97eb8e2767 adds comments for pre-commit checks
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-05-21 23:34:58 +00:00
262c18e03b 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>
2024-05-21 23:34:58 +00:00
4015daea0a Full rewrite of devshell
migrates pre-commit to cachix's pre-commit-hooks

adds a ton of new hooks:
- check-added-large-files
- check-case-conflicts
- check-json
- check-merge-conflicts
- detect-private-keys
- fmt-check
- nil
- no-commit-to-branch
- statix (disabled for now)

migrates devshell to new devshells, set up modularly to have separate
functionality for sops, pre-commit-hooks, and our custom packages

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-05-21 23:34:58 +00:00