theming: drop stylix's chromium policy so helium follows the live theme

This commit is contained in:
rope 2026-08-19 17:23:56 +01:00
parent 32bf9680fe
commit d40b3e518f

View file

@ -553,6 +553,16 @@ in
# to go or the terminal never changes colour. # to go or the terminal never changes colour.
stylix.targets.fish.enable = false; stylix.targets.fish.enable = false;
# Same story one layer up, for helium: stylix's chromium target is not a
# theme but a MANAGED POLICY — {"BrowserThemeColor":"#<base00>"} written to
# /etc/{chromium,brave,opt/chrome}/policies/managed/extra.json, pinned to
# the build-time wallpaper. helium reads /etc/chromium/policies, so it came
# up wearing one frozen colour, labelled "controlled by your administrator",
# with the whole appearance section greyed out — which also locks the GTK
# theme mode and the frame toggle that apps/helium.nix sets. Off, so those
# prefs are ours and the colours follow the live wallpaper theme.
stylix.targets.chromium.enable = false;
home-manager.users.fred = { config, lib, pkgs, osConfig, ... }: { home-manager.users.fred = { config, lib, pkgs, osConfig, ... }: {
# These four targets write build-time files that theme-apply replaces # These four targets write build-time files that theme-apply replaces
# at runtime; leaving them on means stylix and the switcher fight over # at runtime; leaving them on means stylix and the switcher fight over