Collisions between 2 Elixir apps' dependencies

I am deploying a second custom-made Elixir web application elixirapp2 to my target server myserver with NixOps.

I added both elixirapp1 and elixirapp2 in environment.systemPackages and that seems to be the reason I get many warning: collision between ... while deploying:

$ nixops deploy -d mydeployment.example.com --option sandbox relaxed
building all machine configurations...
trace: warning: literalExample is deprecated, use literalExpression instead, or use literalMD for a non-Nix description.
these 10 derivations will be built:
  /nix/store/4pjvfj3mdl4a4ckq9ldysjv9a24si1wi-system-path.drv
  /nix/store/a397k14vh596fljrjmwg9sqpcd4rm99k-dbus-1.drv
  /nix/store/ldghh54jb2lfsf5h7z0wd2pwqm3vas1d-X-Restart-Triggers-dbus.drv
  /nix/store/63jkhr3ff5zxqxmsb243d0h5ixjzwam8-unit-dbus.service.drv
  /nix/store/1lqisw5vvyai74rshlm70libhqcj994z-user-units.drv
  /nix/store/6n440cv5q932wglg6s2biqr5n0znjqbg-unit-dbus.service.drv
  /nix/store/v9mlsbrqg022y3zhh04524cbiipvw7p2-system-units.drv
  /nix/store/5jqsal530jvqnq80hz59pmbpsv2nck4b-etc.drv
  /nix/store/wms6vjfbnb7x9zy7nrfsrlad02smpavy-nixos-system-myserver-23.11.20240111.2e09003.drv
  /nix/store/v6im48invavy6d49lds1qplrprbz3mbs-nixops-machines.drv
building '/nix/store/4pjvfj3mdl4a4ckq9ldysjv9a24si1wi-system-path.drv'...
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/httpd_request_handler.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/httpd_request_handler.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/http_request.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/http_request.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/mod_actions.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/mod_actions.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/http_util.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/http_util.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/httpd_connection_sup.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/httpd_connection_sup.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/httpd_logger.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/httpd_logger.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/inets_service.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/inets_service.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/inets_lib.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/inets_lib.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/httpc_response.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/httpc_response.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/mod_security.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/mod_security.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/mod_auth_server.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/mod_auth_server.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/inets_trace.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/inets_trace.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/httpc_handler.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/httpc_handler.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/mod_head.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/mod_head.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/httpd_acceptor.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/httpd_acceptor.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/http_chunk.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/http_chunk.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/httpd_misc_sup.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/httpd_misc_sup.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/httpd_custom_api.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/httpd_custom_api.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/httpc_manager.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/httpc_manager.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/httpd_response.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/httpd_response.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/httpc.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/httpc.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/httpd_example.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/httpd_example.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/httpd_file.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/httpd_file.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/mod_security_server.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/mod_security_server.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/httpc_handler_sup.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/httpc_handler_sup.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/httpd_manager.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/httpd_manager.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/inets.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/inets.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/mod_responsecontrol.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/mod_responsecontrol.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/httpd_script_env.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/httpd_script_env.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/mod_auth_dets.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/mod_auth_dets.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/mod_auth_plain.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/mod_auth_plain.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/http_transport.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/http_transport.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/httpc_sup.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/httpc_sup.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/inets_app.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/inets_app.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/mod_range.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/mod_range.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/httpd_instance_sup.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/httpd_instance_sup.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/inets.app' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/inets.app'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/httpd_acceptor_sup.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/httpd_acceptor_sup.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/httpd_log.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/httpd_log.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/mod_dir.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/mod_dir.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/httpd_sup.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/httpd_sup.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/inets_sup.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/inets_sup.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/mod_alias.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/mod_alias.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/httpd_esi.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/httpd_esi.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/httpd_conf.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/httpd_conf.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/mod_get.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/mod_get.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/mod_cgi.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/mod_cgi.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/httpd_util.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/httpd_util.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/http_uri.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/http_uri.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/mod_esi.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/mod_esi.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/inets.appup' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/inets.appup'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/httpd_cgi.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/httpd_cgi.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/httpc_profile_sup.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/httpc_profile_sup.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/httpd_request.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/httpd_request.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/mod_disk_log.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/mod_disk_log.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/mod_auth_mnesia.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/mod_auth_mnesia.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/http_response.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/http_response.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/httpd.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/httpd.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/mod_log.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/mod_log.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/httpd_custom.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/httpd_custom.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/httpc_request.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/httpc_request.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/mod_trace.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/mod_trace.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/httpd_socket.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/httpd_socket.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/mod_auth.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/mod_auth.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/ebin/httpc_cookie.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/ebin/httpc_cookie.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/inets-8.3.1.2/priv/bin/runcgi.sh' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/inets-8.3.1.2/priv/bin/runcgi.sh'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/ssl-10.9.1.2/ebin/ssl_dh_groups.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/ssl-10.9.1.2/ebin/ssl_dh_groups.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/ssl-10.9.1.2/ebin/ssl_session_cache_api.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/ssl-10.9.1.2/ebin/ssl_session_cache_api.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/ssl-10.9.1.2/ebin/ssl.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/ssl-10.9.1.2/ebin/ssl.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/ssl-10.9.1.2/ebin/ssl_upgrade_server_session_cache_sup.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/ssl-10.9.1.2/ebin/ssl_upgrade_server_session_cache_sup.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/ssl-10.9.1.2/ebin/tls_client_ticket_store.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/ssl-10.9.1.2/ebin/tls_client_ticket_store.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/ssl-10.9.1.2/ebin/tls_server_sup.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/ssl-10.9.1.2/ebin/tls_server_sup.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/ssl-10.9.1.2/ebin/ssl_config.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/ssl-10.9.1.2/ebin/ssl_config.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/ssl-10.9.1.2/ebin/tls_sup.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/ssl-10.9.1.2/ebin/tls_sup.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/ssl-10.9.1.2/ebin/tls_dtls_connection.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/ssl-10.9.1.2/ebin/tls_dtls_connection.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/ssl-10.9.1.2/ebin/tls_bloom_filter.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/ssl-10.9.1.2/ebin/tls_bloom_filter.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/ssl-10.9.1.2/ebin/ssl_cipher_format.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/ssl-10.9.1.2/ebin/ssl_cipher_format.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/ssl-10.9.1.2/ebin/tls_v1.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/ssl-10.9.1.2/ebin/tls_v1.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/ssl-10.9.1.2/ebin/dtls_connection.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/ssl-10.9.1.2/ebin/dtls_connection.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/ssl-10.9.1.2/ebin/tls_sender.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/ssl-10.9.1.2/ebin/tls_sender.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/ssl-10.9.1.2/ebin/tls_dist_server_sup.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/ssl-10.9.1.2/ebin/tls_dist_server_sup.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/ssl-10.9.1.2/ebin/dtls_socket.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/ssl-10.9.1.2/ebin/dtls_socket.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/ssl-10.9.1.2/ebin/tls_socket.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/ssl-10.9.1.2/ebin/tls_socket.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/ssl-10.9.1.2/ebin/tls_connection_1_3.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/ssl-10.9.1.2/ebin/tls_connection_1_3.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/ssl-10.9.1.2/ebin/ssl_server_session_cache.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/ssl-10.9.1.2/ebin/ssl_server_session_cache.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/ssl-10.9.1.2/ebin/inet_tls_dist.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/ssl-10.9.1.2/ebin/inet_tls_dist.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/ssl-10.9.1.2/ebin/ssl_server_session_cache_sup.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/ssl-10.9.1.2/ebin/ssl_server_session_cache_sup.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/ssl-10.9.1.2/ebin/tls_handshake.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/ssl-10.9.1.2/ebin/tls_handshake.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/ssl-10.9.1.2/ebin/dtls_connection_sup.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/ssl-10.9.1.2/ebin/dtls_connection_sup.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/ssl-10.9.1.2/ebin/tls_dist_sup.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/ssl-10.9.1.2/ebin/tls_dist_sup.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/ssl-10.9.1.2/ebin/ssl_manager.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/ssl-10.9.1.2/ebin/ssl_manager.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/ssl-10.9.1.2/ebin/ssl_gen_statem.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/ssl-10.9.1.2/ebin/ssl_gen_statem.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/ssl-10.9.1.2/ebin/ssl_server_session_cache_db.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/ssl-10.9.1.2/ebin/ssl_server_session_cache_db.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/ssl-10.9.1.2/ebin/ssl_dist_admin_sup.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/ssl-10.9.1.2/ebin/ssl_dist_admin_sup.beam'
warning: collision between `/nix/store/rdvy3zh6rvk8avl2z1gf22dsa6xaklk1-elixirapp1-unstable-2023-02-08/lib/ssl-10.9.1.2/ebin/tls_handshake_1_3.beam' and `/nix/store/5qbz2mk6cd41g09yapakmqwza6sph191-elixirapp2-unstable-2023-02-13/lib/ssl-10.9.1.2/ebin/tls_handshake_1_3.beam'
[...]
created 7755 symlinks in user environment
building '/nix/store/a397k14vh596fljrjmwg9sqpcd4rm99k-dbus-1.drv'...
building '/nix/store/ldghh54jb2lfsf5h7z0wd2pwqm3vas1d-X-Restart-Triggers-dbus.drv'...
building '/nix/store/63jkhr3ff5zxqxmsb243d0h5ixjzwam8-unit-dbus.service.drv'...
building '/nix/store/6n440cv5q932wglg6s2biqr5n0znjqbg-unit-dbus.service.drv'...
building '/nix/store/1lqisw5vvyai74rshlm70libhqcj994z-user-units.drv'...
building '/nix/store/v9mlsbrqg022y3zhh04524cbiipvw7p2-system-units.drv'...
building '/nix/store/5jqsal530jvqnq80hz59pmbpsv2nck4b-etc.drv'...
building '/nix/store/wms6vjfbnb7x9zy7nrfsrlad02smpavy-nixos-system-myserver-23.11.20240111.2e09003.drv'...
building '/nix/store/v6im48invavy6d49lds1qplrprbz3mbs-nixops-machines.drv'...
warning: you did not specify '--add-root'; the result might be removed by the garbage collector
myserver> copying closure...
myserver> copying 9 paths...
myserver> copying path '/nix/store/qvh9bx12lps43wczgvhh6wb25j17ny5b-system-path' to 'ssh://root@myserver.mydeployment.example.com'...
myserver> copying path '/nix/store/ar39nywlmpnbd7pf16k85gq7bgg7i5qa-dbus-1' to 'ssh://root@myserver.mydeployment.example.com'...
myserver> copying path '/nix/store/06p3g7zfdjbaymg7nmcgsns74nkf6apf-X-Restart-Triggers-dbus' to 'ssh://root@myserver.mydeployment.example.com'...
myserver> copying path '/nix/store/59aci9cdilbvzylvlcfwgpdrahh3kxhd-unit-dbus.service' to 'ssh://root@myserver.mydeployment.example.com'...
myserver> copying path '/nix/store/cf292prbkqsin590h90zrp2mbn64aqrx-system-units' to 'ssh://root@myserver.mydeployment.example.com'...
myserver> copying path '/nix/store/kkgrfs7v6n0w34qmh15y0mrr4qd6y90l-unit-dbus.service' to 'ssh://root@myserver.mydeployment.example.com'...
myserver> copying path '/nix/store/qqcf7bcm4n99ccygvlawcgrih471dsg9-user-units' to 'ssh://root@myserver.mydeployment.example.com'...
myserver> copying path '/nix/store/d9xvrwm1nj1mawpsv8z12avwyas3wa28-etc' to 'ssh://root@myserver.mydeployment.example.com'...
myserver> copying path '/nix/store/w5cgh74npqp6fyz5yiyhcxvmdhdb7x3c-nixos-system-myserver-23.11.20240111.2e09003' to 'ssh://root@myserver.mydeployment.example.com'...
mydeployment.example.com> closures copied successfully
[...]
myserver> activating the configuration...
myserver> setting up /etc...
myserver> reloading user units for root...
myserver> setting up tmpfiles
myserver> reloading the following units: dbus.service
myserver> activation finished successfully
mydeployment.example.com> deployment finished successfully

Both elixirapp1 and elixirapp2 are Elixir web application using Phoenix and mix release. Therefore, they both depend on similar libraries which I understand is the cause of the collisions.

I want them both in environment.systemPackages to be able to “Connects to the running system via a remote shell”:

elixirapp1 remote
elixirapp2 remote

Everything seems to work fine though but I am afraid to fall into proof-by-example territory. Can these collisions trigger something bad? How can I avoid them?

Can you share how each app’s derivation is built? I can’t readily imagine why the BEAM bytecode files would wind up interacting with the Nix precedence/priority system which is typically only concerned with true binaries. How the systemd unit is defined may also matter, if you can share that as well.

flake.nix for Elixir App 1:

{
  description = "Elixir App 1";

  inputs = {
    nixpkgs = { url = github:NixOS/nixpkgs/nixos-23.11; };
    utils = { url = github:numtide/flake-utils; };
    nix-filter = { url = github:numtide/nix-filter; };
    other-custom-input = {
      url = git+ssh://git@gitlab.com/mycompany/other-custom-input?ref=main;
      inputs = { nixpkgs.follows = "nixpkgs"; utils.follows = "utils"; };
    };
  };

  outputs = { self, nixpkgs, utils, nix-filter, other-custom-input }:
    let
      supportedSystems = [
        "x86_64-linux"
      ];
    in
    utils.lib.eachSystem supportedSystems (system:
      let
        pkgs = nixpkgs.legacyPackages.${system};
      in
      {
        packages = {

          default = let
            mixVersion = "0.1.0-dev";
          in
          pkgs.stdenv.mkDerivation {

            pname = "elixirapp1";
            version = "unstable-2023-02-08";

            src = nix-filter.lib.filter {
              root = ./.;
              include = [
                "assets"
                "config"
                "lib"
                "mix.exs"
                "mix.lock"
              ];
            };

            buildInputs = [
              pkgs.elixir_1_14
              pkgs.nodejs_20
              pkgs.cacert
            ];

            # Impure building with `--option sandbox relaxed`
            # https://discourse.nixos.org/t/question-about-packaging-elixirls/4056/4
            # You must also add your username to `nix.trustedUsers` in `/etc/nixos/configuration.nix`
            __noChroot = true;

            buildPhase = ''
              mkdir -p $PWD/.hex
              export HOME=$PWD/.hex
              export LANG=C.UTF-8

              mix local.hex --force
              mix local.rebar --force

              mix deps.get --only prod
              MIX_ENV=prod mix compile

              npm --prefix assets ci
              npm --prefix assets run compile
              npm --prefix assets run deploy
              MIX_ENV=prod mix phx.digest

              mkdir -p release
              MIX_ENV=prod mix release --path release

              echo 'export RELEASE_TMP="/var/lib/''${RELEASE_NAME}/''${RELEASE_VSN}/tmp"' >> release/releases/${mixVersion}/env.sh
            '';

            installPhase = ''
              mkdir -p $out
              cp -r release/* $out
            '';
          };
        };
      }
    );
}

flake.nix for Elixir App 2:

{
  description = "Elixir App 2";

  inputs = {
    nixpkgs = { url = github:NixOS/nixpkgs/nixos-23.11; };
    utils = { url = github:numtide/flake-utils; };
    nix-filter = { url = github:numtide/nix-filter; };
  };

  outputs = { self, nixpkgs, utils, nix-filter }:
    let
      supportedSystems = [
        "x86_64-linux"
      ];
    in
    utils.lib.eachSystem supportedSystems (system:
      let
        pkgs = nixpkgs.legacyPackages.${system};
      in
      {
        packages = {

          default = let
            mixVersion = "0.7.0";
          in
          pkgs.stdenv.mkDerivation {

            pname = "elixirapp2";
            version = "unstable-2023-02-13";

            src = nix-filter.lib.filter {
              root = ./.;
              include = [
                "assets"
                "config"
                "lib"
                "mix.exs"
                "mix.lock"
              ];
            };

            buildInputs = [
              pkgs.elixir_1_15
              pkgs.nodejs_20
              pkgs.cacert
            ];

            # Impure building with `--option sandbox relaxed`
            # https://discourse.nixos.org/t/question-about-packaging-elixirls/4056/4
            # You must also add your username to `nix.trustedUsers` in `/etc/nixos/configuration.nix`
            __noChroot = true;

            buildPhase = ''
              mkdir -p $PWD/.hex
              export HOME=$PWD/.hex
              export LANG=C.UTF-8

              mix local.hex --force
              mix local.rebar --force

              mix deps.get --only prod
              MIX_ENV=prod mix compile

              npm --prefix assets ci
              npm --prefix assets run compile
              npm --prefix assets run deploy
              MIX_ENV=prod mix phx.digest

              mkdir -p release
              MIX_ENV=prod mix release --path release

              echo 'export RELEASE_TMP="/var/lib/''${RELEASE_NAME}/''${RELEASE_VSN}/tmp"' >> release/releases/${mixVersion}/env.sh
            '';

            installPhase = ''
              mkdir -p $out
              cp -r release/* $out
            '';
          };
        };
      }
    );
}

There are very few differences, the most notable one is that app 1 uses elixir_1_14 and app 2 uses elixir_1_15.

The systemd units do not matter, the collisions happens even when I do not have the systemd units. I just need to put both app packages in environment.systemPackages for the collisions warnings to be shown.

I just tried to use elixir_1_15 for app 1 as well: same problem, lots of collisions.

Are you aware of buildMixRelease from Nixpkgs and skipping it for some reason? My hypothesis is the custom construction of the derivation is one concern. I don’t trivially spot anything wrong with your code, though.

There are a few examples in Nixpkgs of a Phoenix app with asset builds included, such as Plausible Analytics.

I don’t necessarily agree that the systemd unit is a negligible detail for this question because you can construct them such that they don’t even need environment.systemPackages at all and just set a PATH on the unit itself. That might eliminate the system-level collisions entirely.

I was not aware of mixRelease, I will try to use it and post back the results here.