Skip to content
TheChatArchiveThe Chat Archive
Perplexitysonar· PerplexityHugging Face LMArena Search Arena 24K

how do i install zen browser on nixos

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with gpt-4o-search-preview-high-loc’s answer.
  1. User

    how do i install zen browser on nixos

  2. Perplexity 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.nix and then add it to your environment.systemPackages or home.packages in 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

    MethodDescriptionRequirementsStability
    Nix FlakeUse community Zen Browser flakeKnowledge of flakesGood, community maintained
    Custom Nix ExpressionWrap official AppImage with Nix expressionBasic Nix packaging skillsStable, manual updates needed
    FlatpakInstall Zen Browser as FlatpakFlatpak enabled on NixOSWorks 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.packages list.
    • 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].

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.