how do i install zen browser on nixos
- User
how do i install zen browser on nixos
Assistant
To install Zen Browser on NixOS, you have several options since it is not yet officially packaged in nixpkgs. Here are the main approaches based on recent community solutions:
1. Use a Zen Browser Nix Flake
There is a community-maintained Nix flake for Zen Browser that wraps the official AppImage release. You can add this flake as an input to your NixOS or Home Manager configuration and then install Zen Browser from it.
- Example flake repository: MarceColl/zen-browser-flake (community flake)
- You can add it as an input in your flake.nix and then reference the package in your environment.systemPackages or home-manager packages.
- This method requires you to be familiar with flakes and how to integrate external flakes into your config.
2. Use a Custom Nix Expression to Wrap the AppImage
If you prefer not to use flakes, you can manually create a Nix package that downloads the Zen Browser AppImage and wraps it for use on NixOS.
Here is a simplified example Nix expression that does this:
{ pkgs, appimageTools, fetchurl }: let pname = "zen"; version = "latest"; src = fetchurl { url = "https://github.com/zen-browser/desktop/releases/latest/download/zen-x86_64.AppImage"; sha256 = "16k37ngl4qpqwwj6f9q8jpn20pk8887q8zc0l7qivshmhfib36qq"; # Update this hash as needed }; appimageContents = appimageTools.extract { inherit pname version src; }; in appimageTools.wrapType2 { inherit pname version src; extraInstallCommands = '' install -m 444 -D ${appimageContents}/zen.desktop $out/share/applications/${pname}.desktop install -m 444 -D ${appimageContents}/zen.png $out/share/icons/hicolor/128x128/apps/${pname}.png ''; meta = { platforms = [ "x86_64-linux" ]; description = "Zen Browser - privacy-focused web browser"; homepage = "https://github.com/zen-browser/desktop"; license = pkgs.lib.licenses.mpl20; }; }You can save this as
zen.nixand then add it to yourenvironment.systemPackagesorhome.packagesin your NixOS or Home Manager config.3. Use Flatpak (Temporary Workaround)
Some users install Zen Browser as a Flatpak package while waiting for native packaging. However, there are known issues with Flatpak on NixOS related to library versions and URL handling, so this is less recommended unless you want a quick temporary solution.
Summary Table
Method Description Requirements Stability Nix Flake Use community Zen Browser flake Knowledge of flakes Good, community maintained Custom Nix Expression Wrap official AppImage with Nix expression Basic Nix packaging skills Stable, manual updates needed Flatpak Install Zen Browser as Flatpak Flatpak enabled on NixOS Works but with some issues Additional Notes
- When using flakes, you can integrate the Zen Browser flake into your Home Manager config by adding it as an input and then including the package in your
home.packageslist. - The AppImage wrapping method ensures you get the latest official release but requires updating the sha256 hash when the AppImage updates.
- There is ongoing discussion and development in the NixOS community to package Zen Browser from source, but it is not yet merged into nixpkgs.
If you want a quick start, the AppImage wrapping method is the easiest to implement without switching to flakes.
This information is based on recent NixOS community discussions and GitHub issues about Zen Browser packaging as of early 2025[1][2][4][8].
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.