kayla: GTK theme for chrome via dconf + initial_preferences; add kaylavm alias

This commit is contained in:
rope 2026-08-10 09:51:24 +01:00
parent ea08e8fd30
commit dfc6855a55
2 changed files with 19 additions and 0 deletions

View file

@ -45,6 +45,22 @@
base0F = "8e44ad"; # base16's "brown" slot; Breeze has no brown
};
# Chrome's GTK theme is only as good as the GTK theme underneath it, and
# stylix's gtk target refuses to apply without dconf (settings/desktop.nix
# enables it, but that file is gated to the Hyprland hosts). Without this
# Chrome falls back to stock light Adwaita while everything else is dark.
programs.dconf.enable = true;
# ...and point Chrome at GTK rather than its own frame. There is no policy
# for this — it's a profile pref — so seed it via Chrome's supported
# initial_preferences hook, which is copied into a profile at *creation*.
# Fresh profile only: an existing one keeps whatever it already has, and
# she can flip it by hand under Settings → Appearance → Theme.
# 0 = Classic, 1 = GTK, 2 = Qt.
environment.etc."opt/chrome/initial_preferences".text = builtins.toJSON {
extensions.theme.system_theme = 1;
};
# Stylix's chromium target is a *managed policy* (BrowserThemeColor written
# to /etc/opt/chrome/policies), which is what makes Chrome say "your
# administrator has set a default theme" and greys out the appearance