This flake provides the latest Chrome stable, beta and dev releases. The flake is updated regularly to ensure fast and up to date releases, which would otherwise not be possible in nixpkgs.
google-chrome-beta and google-chrome-dev were not getting maintained in nixpkgs,
and were dropped in NixOS/nixpkgs#261870.
Run nix flake show github:nix-community/browser-previews for the up-to-date list.
NIXPKGS_ALLOW_UNFREE=1 nix run github:nix-community/browser-previews#google-chrome --impureLikewise for google-chrome-beta or google-chrome-dev:
NIXPKGS_ALLOW_UNFREE=1 nix run github:nix-community/browser-previews#google-chrome-beta --impureNIXPKGS_ALLOW_UNFREE=1 nix run github:nix-community/browser-previews#google-chrome-dev --impure- First you must add it as a input to your
flake.nix:
inputs.browser-previews = { url = "github:nix-community/browser-previews";
inputs.nixpkgs.follows = "nixpkgs"; };-
Pass
inputsto your modules usingspecialArgs. -
Then in
configuration.nix, use it like this:
{ config, lib, pkgs, inputs, ... }:
{
environment.systemPackages = with inputs.browser-previews.packages.${pkgs.system}; [
google-chrome # Stable Release
google-chrome-beta # Beta Release
google-chrome-dev # Dev Release
];
}(Must have flakes enabled.)
The chromium build takes more resources than I'm willing to spend.