{ ... }: {
  flake.homeManagerModules.wisdomBrowsersChrome =
    { config, lib, pkgs, ... }:
    let
      root = config.chiasson.home;
      cfg = config.chiasson.home.browsers.chrome;
    in
    {
      options.chiasson.home.browsers.chrome.enable = lib.mkEnableOption ''
        Chrome (unfree, needs `allowUnfree`); skipped if nixpkgs has no build for this platform.
      '';

      config = lib.mkIf (root.enable && cfg.enable) {
        home.packages = lib.optional (
          lib.meta.availableOn pkgs.stdenv.hostPlatform pkgs.google-chrome
        ) pkgs.google-chrome;
      };
    };
}
