Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 1.99 KB

README.md

File metadata and controls

55 lines (40 loc) · 1.99 KB

chromexup for NixOS

In the mess that is the modern browser ecosystem, ungoogled-chromium is a fairly solid browser choice. It's well funded, meaning the feature set & security is fairly on point -- but it's also a fork with all Google's creepy stuff removed. Awesome!

There's a problem though.

It can't interface with the Chromium web store! There are extensions to do this, but us Nix weirdos like to do things declaratively, so I'm using an ancient script called chromexup. And amazingly, it still works fine, 6 years later without any changes!

However, it was never packaged for Nix.

So this repo takes care of the following problems:

  • Package the chromexup repo for Nix so that it can be called from CLI.
  • Add a Home Manager module to configure it declaratively

How to use

Get your system flake inputs in order:

  # inside `inputs` scope
  chromexup.url = "github:crabdancing/chromexup-flake";

And hook it up to your home-manager instance:

# inside a module's `config` scope
home-manager.sharedModules = [
    inputs.chromexup.homeManagerModules.default
];

At which point, you can configure it inside home-manager for any user:

# inside a module's `config` scope
home-manager.red.programs.chromexup = {
  enable = true;
  extensions = {
    UBlockOrigin = "cjpalhdlnbpafiamejdnhcphjbkeiagm";
    Bitwarden = "nngceckbapebfimnlniiiahkandclblb";
    CurlWget = "dgcfkhmmpcmkikfmonjcalnjcmjcjjdn";
  };
};

Someday Asked Questions

This will also automatically enable a systemd service & timer, so it will automatically run daily!