1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-02 15:11:03 +01:00
home-manager/tests/modules/misc/gtk/gtk4/gtk4-basic-settings.nix
Fugi ae9f38e889 gtk4: don't enable theme by default
This is not officially supported and causes issues in some cases.
Also adds a warning to the option.
2025-11-28 14:14:32 -06:00

30 lines
666 B
Nix

{ pkgs, ... }:
{
gtk = {
enable = true;
gtk4 = {
theme = {
name = "catppuccin-macchiato-blue-standard";
package = pkgs.catppuccin-gtk;
};
extraConfig = {
gtk-cursor-blink = false;
gtk-recent-files-limit = 20;
};
};
};
nmt.script =
let
gtk4Path = "home-files/.config/gtk-4.0";
in
''
assertFileExists ${gtk4Path}/settings.ini
assertFileContent ${gtk4Path}/settings.ini \
${./gtk4-basic-settings-expected.ini}
assertFileExists ${gtk4Path}/gtk.css
assertFileContent ${gtk4Path}/gtk.css \
${./gtk4-basic-settings-expected.css}
'';
}