We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
cf. "This also solves the problem of only being able to run one instance at a time." of cachix/devenv#75
passetto adds a postgresql service. But the user (nammayatri) may add their own postgresql service. Can the two DB coexist?
passetto
Should we adjust the module API to accomodate for this? For eg., instead of:
services.postgresql.enable = true;
do we instead do:
services.postgresql."some-name".enable = true;
And consistently use this API for all services?
This should work in nammayatri which has its own postgresql, as well as a postgres db used for passeto.
The text was updated successfully, but these errors were encountered:
This makes sense! I think we can already do this if we have a different dataDir and serve on a different port.
Sorry, something went wrong.
It would look more like this,
services.postgresql = lib.mkOption { type = types.submodule ({name, ...}: { options = { dataDir = lib.mkOption { type = types.str; default = "./data/${name}"; }; } }); }
Note how dataDir's default is determined from the attrset key (name).
dataDir
name
Successfully merging a pull request may close this issue.
cf. "This also solves the problem of only being able to run one instance at a time." of cachix/devenv#75
Consider this scenario
passetto
adds a postgresql service. But the user (nammayatri) may add their own postgresql service. Can the two DB coexist?What we can do
Should we adjust the module API to accomodate for this? For eg., instead of:
do we instead do:
And consistently use this API for all services?
Concrete goal
This should work in nammayatri which has its own postgresql, as well as a postgres db used for passeto.
The text was updated successfully, but these errors were encountered: