oizys/modules/programs/chrome/default.nix

34 lines
812 B
Nix
Raw Normal View History

{
pkgs,
config,
lib,
...
}: let
inherit (lib) mkIf mkEnableOption;
2024-03-18 17:20:18 -05:00
cfg = config.oizys.chrome;
in {
2024-03-18 17:20:18 -05:00
options.oizys.chrome.enable = mkEnableOption "enable chrome + extensions";
config = mkIf cfg.enable {
programs.chromium = {
enable = true;
extensions = [
"nngceckbapebfimnlniiiahkandclblb" # bitwarden
"gfbliohnnapiefjpjlpjnehglfpaknnc" # surfingkeys
"pbmlfaiicoikhdbjagjbglnbfcbcojpj" # simplify gmail
"oemmndcbldboiebfnladdacbdfmadadm" # pdf viewer
"clngdbkpkpeebahjckkjfobafhncgmne" # stylus
2024-03-18 17:20:18 -05:00
"cjpalhdlnbpafiamejdnhcphjbkeiagm" # ublock origin
];
};
environment.systemPackages = with pkgs; [
2024-03-18 17:20:18 -05:00
(google-chrome.override {
commandLineArgs = [
"--force-dark-mode"
];
})
];
};
}