{ ... }: {
  flake.homeManagerModules.wisdomBrowsersEdge =
    { config, lib, pkgs, ... }:
    let
      root = config.chiasson.home;
      cfg = config.chiasson.home.browsers.edge;
    in
    {
      options.chiasson.home.browsers.edge.enable = lib.mkEnableOption "Edge (unfree); skipped if unavailable on this platform.";

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