nixos/modules/home/apps/chromium/default.nix
2024-05-27 22:23:32 +02:00

32 lines
No EOL
946 B
Nix

{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.homeModules.apps.chromium;
in
{
options.homeModules.apps.chromium = {
enable = mkEnableOption ''
Enable chromium with my custom configurations
'';
};
config = mkIf cfg.enable {
programs.chromium = {
enable = true;
package = pkgs.chromium.override {
enableWideVine = true; # Enable DRM
};
extensions = [
{ id = "cjpalhdlnbpafiamejdnhcphjbkeiagm"; } # Ublock Origin
{ id = "nngceckbapebfimnlniiiahkandclblb"; } # Bitwarden
{ id = "fnaicdffflnofjppbagibeoednhnbjhg"; } # Floccus Bookmark manager
{ id = "fihnjjcciajhdojfnbdddfaoknhalnja"; } # I don't care about cookies
{ id = "cimiefiiaegbelhefglklhhakcgmhkai"; } # Plasma Integration
{ id = "eimadpbcbfnmbkopoojfekhnkhdbieeh"; } # Dark reader
{ id = "mnjggcdmjocbbbhaepdhchncahnbgone"; } # SponsorBlock
];
};
};
}