Skip to content

Modularize shell.nix-es #2

Description

@toraritte

shell.nix-es can be curried (i.e., being called one after another) without any issues (that I'm aware of) so instead creating highly specific Nix expressions, create many smaller ones doing one task only that can be composed easier.

For example, there is the (Elixir-Phoenix-Postgres shell.nix)[https://github.com/toraritte/shell.nixes/blob/main/elixir-phoenix-postgres/shell.nix], my go-to Nix expression when trying to set PostgreSQL up quickly in other contexts. Spent a lot of time figuring out the PostgreSQL-specific parts - and it is mostly that anyway. Now I need to fire up a legacy Django project, but only need PostgreSQL, not the rest.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions