nixos/modules/home/apps/chromium/default.nix

32 lines
946 B
Nix
Raw Normal View History

2024-05-25 00:51:55 +02:00
{ config, pkgs, lib, ... }:
with lib;
let
2024-05-27 22:23:32 +02:00
cfg = config.homeModules.apps.chromium;
2024-05-25 00:51:55 +02:00
in
{
2024-05-27 22:23:32 +02:00
options.homeModules.apps.chromium = {
2024-05-25 00:51:55 +02:00
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
];
};
};
}