From 11e2e188deb2f55dac37212dec6ce467b87c94a1 Mon Sep 17 00:00:00 2001 From: Daniel Thwaites Date: Sun, 8 Jan 2023 18:59:48 +0000 Subject: [PATCH] Style Chromium, Google Chrome and Brave :sparkles: --- flake.nix | 1 + modules/chromium.nix | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 modules/chromium.nix diff --git a/flake.nix b/flake.nix index db30466d..a8fa11f7 100644 --- a/flake.nix +++ b/flake.nix @@ -61,6 +61,7 @@ imports = [ ./modules/alacritty.nix ./modules/bemenu.nix + ./modules/chromium.nix ./modules/console.nix ./modules/dunst.nix ./modules/feh.nix diff --git a/modules/chromium.nix b/modules/chromium.nix new file mode 100644 index 00000000..8356bae0 --- /dev/null +++ b/modules/chromium.nix @@ -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; + }; +}