Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add Nix development shell config to use (additional to containerized hooks) #177

Open
gabyx opened this issue Sep 6, 2024 · 0 comments

Comments

@gabyx
Copy link
Owner

gabyx commented Sep 6, 2024

It is extremely helpful if we could use Nix devShells to run stuff.
The functionality would be the same as the one for images.yaml which defines images which can be used

Hook Run Configuration Version 4

cmd: ...
args: ...
env: ...
image: ...
nix: 
  path: ./tools/nix
  name: "myshell"
  
version: 4 # optional

Then nix develop <base-path>/tools/nix#myshell will be used, <base-path> is relative the shared repo or the current executing one.

There should be an Git option githooks.nixHooksEnabled which will take precedence over githooks.containerizedHooksEnabled and will run over the nix develop ... --comand shell.

@gabyx gabyx changed the title feat: Add nix.yaml config to set a Nix development shell to use instead of images feat: Add Nix development shell config to use instead of images Sep 6, 2024
@gabyx gabyx changed the title feat: Add Nix development shell config to use instead of images feat: Add Nix development shell config to use (addtional to containerized hooks) Sep 6, 2024
@gabyx gabyx changed the title feat: Add Nix development shell config to use (addtional to containerized hooks) feat: Add Nix development shell config to use (additional to containerized hooks) Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant