change from mono-home-manager to full flake multi-system configuration
This commit is contained in:
40
home/chromium.nix
Normal file
40
home/chromium.nix
Normal file
@@ -0,0 +1,40 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
cfg = config.homeModules.chromium;
|
||||
in
|
||||
|
||||
lib.mkIf cfg.enable {
|
||||
programs.chromium = {
|
||||
enable = true;
|
||||
|
||||
package = pkgs.brave; # use brave as package
|
||||
|
||||
# List of Chromium dictionaries to install
|
||||
dictionaries = [
|
||||
pkgs.hunspellDictsChromium.en_US
|
||||
pkgs.hunspellDictsChromium.de_DE
|
||||
];
|
||||
|
||||
extensions = [
|
||||
# Add Chrome extension IDs here to auto-install them
|
||||
# Example:
|
||||
"cjpalhdlnbpafiamejdnhcphjbkeiagm" # uBlock Origin
|
||||
];
|
||||
|
||||
# Enable hardware acceleration (VAAPI, WebGL, etc.)
|
||||
# enableWideVine = true;
|
||||
commandLineArgs = [
|
||||
"--enable-features=UseOzonePlatform"
|
||||
"--ozone-platform=wayland"
|
||||
"--restore-last-sesstion" # on startup restore
|
||||
"--safebrowsing-enable-enhanced-protection"
|
||||
];
|
||||
};
|
||||
|
||||
xdg.mimeApps.defaultApplications = {
|
||||
"x-scheme-handler/http" = "chromium-browser.desktop";
|
||||
"x-scheme-handler/https" = "chromium-browser.desktop";
|
||||
"text/html" = "chromium-browser.desktop";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user