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

Nix improvements #1366

Open
1 of 5 tasks
roninjin10 opened this issue Aug 6, 2024 · 4 comments · Fixed by #1367
Open
1 of 5 tasks

Nix improvements #1366

roninjin10 opened this issue Aug 6, 2024 · 4 comments · Fixed by #1367
Assignees
Labels
build chore help wanted Extra attention is needed

Comments

@roninjin10
Copy link
Collaborator

roninjin10 commented Aug 6, 2024

Copy link

linear bot commented Aug 6, 2024

@o-az o-az linked a pull request Aug 6, 2024 that will close this issue
1 task
@roninjin10 roninjin10 reopened this Aug 6, 2024
@shazow
Copy link
Contributor

shazow commented Aug 6, 2024

Re ci/cd: Consider using https://github.com/marketplace/actions/the-determinate-nix-installer, I haven't tried it yet but it's supposed to be very comprehensive and automagically takes care of caching store stuff iirc.

Also related post: https://nix.dev/tutorials/nixos/continuous-integration-github-actions.html

@shazow
Copy link
Contributor

shazow commented Aug 6, 2024

Re docker: Nix can generate docker images, use pkgs.dockerTools.buildLayeredImage, some posts:

https://nix.dev/tutorials/nixos/building-and-running-docker-images.html
https://xeiaso.net/talks/2024/nix-docker-build/

@shazow
Copy link
Contributor

shazow commented Aug 6, 2024

Some other fun features to experiment with:

  • Can add app entrypoints so people can nix run the repo, for example something like: nix run github:shazow/foundry.nix#cast -- gas-price
  • There's various testing provisions, from simple flake target runners to whole VMs you can spawn and have talk to each other.

@roninjin10 roninjin10 added chore help wanted Extra attention is needed good first issue Good for newcomers labels Aug 8, 2024 — with Linear
@roninjin10 roninjin10 removed the good first issue Good for newcomers label Aug 8, 2024
@roninjin10 roninjin10 added the build label Aug 8, 2024 — with Linear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build chore help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants