Style Chromium, Google Chrome and Brave

This commit is contained in:
Daniel Thwaites 2023-01-08 18:59:48 +00:00
parent e43c98f9e7
commit 11e2e188de
No known key found for this signature in database
GPG key ID: D8AFC4BF05670F9D
2 changed files with 15 additions and 0 deletions

View file

@ -61,6 +61,7 @@
imports = [
./modules/alacritty.nix
./modules/bemenu.nix
./modules/chromium.nix
./modules/console.nix
./modules/dunst.nix
./modules/feh.nix

14
modules/chromium.nix Normal file
View file

@ -0,0 +1,14 @@
{ config, lib, ... }:
{
options.stylix.targets.chromium.enable =
config.lib.stylix.mkEnableTarget "Chromium, Google Chrome and Brave" true;
config.programs.chromium = lib.mkIf config.stylix.targets.chromium.enable {
# This enables policies without installing the browser. Policies take up a
# negligible amount of space, so it's reasonable to have this always on.
enable = true;
extraOpts.BrowserThemeColor = config.lib.stylix.colors.withHashtag.base00;
};
}