Nix on Ubuntu - VSCode/Chromium/Alacritty/GUI Apps don't launch

I have installed nix with home-manager on Ubuntu 24.04. Every cli application is working as expected however any app graphical application (VSCode / Chromium / Alacritty / etc) wont launch. I know they are being installed properly. Here is an example flake that works perfectly on my NixOS machine though on Ubuntu won’t launch vscode:

{
  inputs = {
    systems.url = "github:nix-systems/default";
    nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
  };

  outputs =
  {
    self,
    nixpkgs,
    systems,
  }:
  let
    forEachSystem =
      f: nixpkgs.lib.genAttrs (import systems) (system: f {
        pkgs = import nixpkgs {
          inherit system;
          config.allowUnfree = true;
        };
      });
  in
  {
    devShells = forEachSystem (
      { pkgs }:
      {
        default = pkgs.mkShellNoCC {
          packages = with pkgs; [
            vscode
          ];

          # VSCode extension installation
          shellHook = ''
            mkdir -p .vscode/extensions
            # Add more extensions here as needed
          '';
        };
      }
    );
  };
}

Some googling lead me to believe that nixGL may help though I haven’t been able to get it working. I’m running on aarch64

Any help is appreciated.

Not sure why people have trouble getting nixgl working, the instructions are in the readme.
That being said it’s not perfect and won’t work 100% of the time, I’d usually recommend just using your distro’s package manager for GUI apps.