- Issue created by @freelock
-
freelock β
committed dd3f968a on main
feat(settings): Make nix include more compatible with non-flake...
-
freelock β
committed dd3f968a on main
- πΊπΈUnited States freelock Seattle
Ok. I've chosen to use the socket for the database server to determine whether or not the Nix runtime environment is running. If it is, the settings.nix.php file is included. If not, it's ignored.
This should allow the entire flake to happily co-exist with other dev environments such as ddev or LAMP stacks or whatever.
I would recommend having the settings.nix.php gitignore'd, it is generated at startup if it doesn't exist anyway. Otherwise when the runtime is running, drush and the site should get the necessary nix-specific values from environment variables.