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

nixbot: Use NixOS module for stuff that needs one-time setup #3

Open
1 of 4 tasks
infinisil opened this issue Oct 19, 2018 · 0 comments
Open
1 of 4 tasks

nixbot: Use NixOS module for stuff that needs one-time setup #3

infinisil opened this issue Oct 19, 2018 · 0 comments

Comments

@infinisil
Copy link
Owner

infinisil commented Oct 19, 2018

There's some things that require a one-time setup. It would be possible to embed that logic into the executable, but that would be bothersome and error-prone. Much simpler is to use a NixOS module to generate these things and pass the path to the executable.

This includes:

  • The nixpkgs checkout
  • Nix files which I currently manually insert (allowing fetching from the web from the shell would solve that too)
  • The nix-index cache (this one might be tricky)
  • The index file containing which nixpkgs file is committed to how many times (used for ,find, currently done manually too..)

Could also add multiple channels like this rather easily.

So the NixOS module should take options to configure everything, and output a running service containing all it needs to run successfully.

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