Chromium: Manage flags declaratively.

This commit is contained in:
Dmitry Voronin 2024-10-28 12:47:24 +03:00
parent 72ed9e7e17
commit edb6244792
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
2 changed files with 12 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{ pkgs, config, ... }: { pkgs, config, ... }:
{ {
file = (pkgs.formats.json { }).generate "ChromiumConfig" { preferences = (pkgs.formats.json { }).generate "ChromiumConfig" {
bookmark_bar.show_on_all_tabs = false; bookmark_bar.show_on_all_tabs = false;
browser.show_home_button = false; browser.show_home_button = false;
default_apps_install_state = 2; default_apps_install_state = 2;
@ -76,4 +76,13 @@
}; };
}; };
}; };
localState = (pkgs.formats.json { }).generate "ChromiumLocalState" {
browser = {
enabled_labs_experiments = [
"smooth-scrolling@2"
];
first_run_finished = true;
};
};
} }

View file

@ -29,7 +29,8 @@ in
".config/MangoHud/MangoHud.conf".source = mangohud.config; ".config/MangoHud/MangoHud.conf".source = mangohud.config;
".config/MangoHud/presets.conf".source = mangohud.presets; ".config/MangoHud/presets.conf".source = mangohud.presets;
".config/btop/btop.conf".text = btop.text; ".config/btop/btop.conf".text = btop.text;
".config/chromium/Default/Preferences".source = chromium.file; ".config/chromium/Default/Preferences".source = chromium.preferences;
".config/chromium/Local State".source = chromium.localState;
".config/foot/foot.ini".source = foot.file; ".config/foot/foot.ini".source = foot.file;
".config/fuzzel/fuzzel.ini".source = fuzzel.file; ".config/fuzzel/fuzzel.ini".source = fuzzel.file;
".config/gtk-3.0/bookmarks".text = gtk3.bookmarks; ".config/gtk-3.0/bookmarks".text = gtk3.bookmarks;