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; + }; +}