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.