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
phpfpm: allow configuring PHP package per-pool #41440
Conversation
Hi @wmertens, Thanks for this! Thanks! |
Actually, I think it's backwards compatible. The only that changes is the intermediate representation of the php config, and that's only used in the file itself. The PHP package defaults to the phpfpm-configured package, so that should be ok too… |
anyway it seems I broke eval ;) fixing |
da406ba
to
ab0b4cc
Compare
Hi @wmertens, Are you sure? I was forced to adjust my phpFpm configurations due to the new nested config attribute. I failed to use the passed set as the new config if no config attribute exists, hope this still makes sense 😉 pm me if it doesn't |
Hmm indeed it might be not compatible. I'll need to do some tests. |
Ok I finally realized what's wrong with this: the To fix it, I'll combine it in a separate attribute, so it can stay a string. |
ab0b4cc
to
69936b5
Compare
Hi @wmertens, Thanks again for looking into this! Erik aka 4levels |
I now realize that there is no |
(triage) Reading the history is confusing… @wmertens, what is the state of this? I somehow get the feeling that it's ready except it has no test for So, let's try: @GrahamcOfBorg test nextcloud |
No attempt on aarch64-linux (full log) The following builds were skipped because they don't evaluate on aarch64-linux: tests.nextcloud Partial log (click to expand)
|
No attempt on x86_64-linux (full log) The following builds were skipped because they don't evaluate on x86_64-linux: tests.nextcloud Partial log (click to expand)
|
Oh yeah that issue is still there… second try. @GrahamcOfBorg build nixosTests.nextcloud |
Success on aarch64-linux (full log) Attempted: nixosTests.nextcloud Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: nixosTests.nextcloud Partial log (click to expand)
|
puts hands before eyes, peeks through fingers, pushes button |
all props to @4levels
Motivation for this change
This allows choosing the PHP version for a PHPFPM pool so that you can run multiple versions per system.
I took the work done by @4levels (see the discussion) and combined it into this PR.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)