home/chromium: brave by default

This commit is contained in:
Aly Raffauf 2024-05-28 23:17:37 -04:00
parent 8d240f53fd
commit e65050fc01
2 changed files with 19 additions and 13 deletions

11
aly.nix
View file

@ -40,7 +40,7 @@ in {
defaultApps = {
enable = true;
webBrowser = {
package = pkgs.brave.override {commandLineArgs = "--gtk-version=4 --enable-wayland-ime";};
package = config.programs.chromium.package;
desktop = "brave-browser.desktop";
};
};
@ -98,18 +98,21 @@ in {
};
apps = {
alacritty.enable = true;
firefox.enable = true;
bash.enable = true;
chromium = {
enable = true;
package = pkgs.brave.override {commandLineArgs = "--gtk-version=4 --enable-wayland-ime";};
};
emacs.enable = true;
eza.enable = true;
fastfetch.enable = true;
firefox.enable = true;
fzf.enable = true;
neofetch.enable = true;
neovim.enable = true;
tmux.enable = true;
chromium.enable = true;
tauon.enable = true;
thunderbird.enable = true;
tmux.enable = true;
vsCodium.enable = true;
webCord.enable = true;
};

View file

@ -5,24 +5,27 @@
...
}: {
options = {
alyraffauf.apps.chromium.enable = lib.mkEnableOption "Enables Chromium.";
alyraffauf.apps.chromium = {
enable = lib.mkEnableOption "Chromium-based browser with default extensions.";
package = lib.mkOption {
description = "Chromium-based browser (Brave by default).";
default = pkgs.brave.override {commandLineArgs = "--gtk-version=4 --enable-wayland-ime";};
type = lib.types.package;
};
};
};
config = lib.mkIf config.alyraffauf.apps.chromium.enable {
programs.chromium = {
enable = true;
package = config.alyraffauf.apps.chromium.package;
extensions = [
{id = "aomidfkchockcldhbkggjokdkkebmdll";} # Redirect Path
{id = "bfogiafebfohielmmehodmfbbebbbpei";} # Keeper
{id = "cjpalhdlnbpafiamejdnhcphjbkeiagm";} # uBlock Origin
{id = "ioalpmibngobedobkmbhgmadaphocjdn";} # OneLogin
{id = "jldhpllghnbhlbpcmnajkpdmadaolakh";} # Todoist
{id = "lcbjdhceifofjlpecfpeimnnphbcjgnc";} # xBrowserSync
{id = "enamippconapkdmgfgjchkhakpfinmaj";} # dearrow
{id = "jldhpllghnbhlbpcmnajkpdmadaolakh";} # todoist
{id = "mnjggcdmjocbbbhaepdhchncahnbgone";} # sponsorblock
{id = "oboonakemofpalcgghocfoadofidjkkk";} # keepassxc
{id = "ocabkmapohekeifbkoelpmppmfbcibna";} # zoom redirector
{id = "occjjkgifpmdgodlplnacmkejpdionan";} # Autoscroll
{id = "olhelnoplefjdmncknfphenjclimckaf";} # catppuccin frappe
# {id = "nngceckbapebfimnlniiiahkandclblb";} # Bitwarden
];
};
};