{ config, lib, pkgs, ... }: with lib; let cfg = config.nixfiles.modules.chromium; in { options.nixfiles.modules.chromium.enable = mkEnableOption "Chromium"; config = mkIf cfg.enable { hm = { home.packages = with pkgs; [ profile-cleaner ]; programs.chromium = { enable = true; # package = pkgs.ungoogled-chromium; extensions = [ { id = "cjpalhdlnbpafiamejdnhcphjbkeiagm"; } # uBlock Origin { id = "nkbihfbeogaeaoehlefnkodbefgpgknn"; } # MetaMask ]; }; }; }; }