Zen browser config

Hey everyone. I am currently moving to the zen browser (based on firefox). Has anyone set this up declaratively? I assume all I will need to do is set programs.firefox.package to the zen binary.

Any repos appreciated.

Cheers.

1 Like

Hello,

There’s currently an issue open to add zen to nixpkgs. It has been open for a while now, and to my understanding it will remain open until Zen is considered stable and reliable enough. For now, you can use a flake such as
GitHub - 0xc000022070/zen-browser-flake: Community-driven Nix Flake for the Zen browser.

3 Likes

Yup! That’s how I have installed it. what I was wondering was if I could do something like:

 programs.firefox.package = `in.flake.binary`

Or something like that. Then use the regular options for Firefox to configure it.

Cheers.

The flake mentioned has a home-manager module. You can just set that one:

# flake.nix
{
  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";
    home-manager.url = "github:nix-community/home-manager/release-25.05";
    home-manager.inputs.nixpkgs.follows = "nixpkgs";
    zen-browser.url = "github:0xc000022070/zen-browser-flake";
    zen-browser.inputs.nixpkgs.follows = "nixpkgs";
    zen-browser.inputs.home-manager.follows = "home-manager";
  };
  outputs = inputs @ { nixpkgs, home-manager, ... }: {
    homeConfigurations.myuser = home-manager.lib.homeManagerConfiguration {
      modules = [ ./home.nix ];
      extraSpecialArgs = { inherit inputs; };
    };
  };
}
# home.nix
{ inputs, config, lib, pkgs, ... }: {
  imports = [ inputs.zen-browser.homeModules.twilight ];
  programs.zen-browser = {
    enable = true;
    # any other options under `programs.firefox` are also supported here.
    # see `man home-configuration.nix`.
  };
}
2 Likes

Thank you! Appreciate that!

Hi, I am unable to configure extensions or any other configurations using the nix package, I’ll attach my github repo for more info about this issue

right now I have removed the config but when it was present it didnt work

1 Like