add default extensions to vivaldi/chrome

This commit is contained in:
Daylin Morgan 2024-02-26 13:34:01 -06:00
parent dbd4159002
commit 1da7e1ff0b
Signed by: daylin
GPG key ID: 3CD66E04B8072F3E
4 changed files with 38 additions and 8 deletions

View file

@ -12,6 +12,7 @@
cli.enable = true;
desktop.enable = true;
vivaldi.enable = true;
languages = {
misc = true;

View file

@ -20,7 +20,6 @@
hyprland
gui
vscode
# langs
python
@ -28,6 +27,10 @@
node
tex
nim
# programs
vivaldi
vscode
];
options.desktop.enable = lib.mkEnableOption "is desktop";

View file

@ -19,13 +19,6 @@ in {
libreoffice-qt
hunspell # spell check for libreoffice
(vivaldi.override {
commandLineArgs = [
"--force-dark-mode"
];
proprietaryCodecs = true;
})
];
};
}

View file

@ -0,0 +1,33 @@
{
pkgs,
config,
lib,
...
}: let
inherit (lib) mkIf mkEnableOption;
cfg = config.vivaldi;
in {
options.vivaldi.enable = mkEnableOption "enable vivaldi + extensions";
config = mkIf cfg.enable {
programs.chromium = {
enable = true;
extensions = [
"nngceckbapebfimnlniiiahkandclblb" # bitwarden
"gfbliohnnapiefjpjlpjnehglfpaknnc" # surfingkeys
"pbmlfaiicoikhdbjagjbglnbfcbcojpj" # simplify gmail
"oemmndcbldboiebfnladdacbdfmadadm" # pdf viewer
"clngdbkpkpeebahjckkjfobafhncgmne" # stylus
];
};
environment.systemPackages = with pkgs; [
(vivaldi.override {
commandLineArgs = [
"--force-dark-mode"
];
proprietaryCodecs = true;
})
];
};
}