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

View file

@ -5,24 +5,27 @@
... ...
}: { }: {
options = { 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 { config = lib.mkIf config.alyraffauf.apps.chromium.enable {
programs.chromium = { programs.chromium = {
enable = true; enable = true;
package = config.alyraffauf.apps.chromium.package;
extensions = [ extensions = [
{id = "aomidfkchockcldhbkggjokdkkebmdll";} # Redirect Path {id = "enamippconapkdmgfgjchkhakpfinmaj";} # dearrow
{id = "bfogiafebfohielmmehodmfbbebbbpei";} # Keeper {id = "jldhpllghnbhlbpcmnajkpdmadaolakh";} # todoist
{id = "cjpalhdlnbpafiamejdnhcphjbkeiagm";} # uBlock Origin {id = "mnjggcdmjocbbbhaepdhchncahnbgone";} # sponsorblock
{id = "ioalpmibngobedobkmbhgmadaphocjdn";} # OneLogin
{id = "jldhpllghnbhlbpcmnajkpdmadaolakh";} # Todoist
{id = "lcbjdhceifofjlpecfpeimnnphbcjgnc";} # xBrowserSync
{id = "oboonakemofpalcgghocfoadofidjkkk";} # keepassxc {id = "oboonakemofpalcgghocfoadofidjkkk";} # keepassxc
{id = "ocabkmapohekeifbkoelpmppmfbcibna";} # zoom redirector {id = "ocabkmapohekeifbkoelpmppmfbcibna";} # zoom redirector
{id = "occjjkgifpmdgodlplnacmkejpdionan";} # Autoscroll
{id = "olhelnoplefjdmncknfphenjclimckaf";} # catppuccin frappe {id = "olhelnoplefjdmncknfphenjclimckaf";} # catppuccin frappe
# {id = "nngceckbapebfimnlniiiahkandclblb";} # Bitwarden
]; ];
}; };
}; };