mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-02 15:11:03 +01:00
30 lines
674 B
Nix
30 lines
674 B
Nix
{ pkgs, ... }:
|
|
{
|
|
# Test GTK4 theme CSS injection with both theme and custom CSS
|
|
gtk = {
|
|
enable = true;
|
|
|
|
gtk4 = {
|
|
theme = {
|
|
name = "Adwaita-dark";
|
|
package = pkgs.gnome-themes-extra;
|
|
};
|
|
extraCss = ''
|
|
/* Custom user CSS */
|
|
window {
|
|
background-color: #2d2d2d;
|
|
}
|
|
|
|
button {
|
|
border-radius: 8px;
|
|
}
|
|
'';
|
|
};
|
|
};
|
|
|
|
nmt.script = ''
|
|
# GTK4 CSS should exist and contain both theme import and custom CSS
|
|
assertFileExists home-files/.config/gtk-4.0/gtk.css
|
|
assertFileContent home-files/.config/gtk-4.0/gtk.css ${./gtk4-theme-css-injection-expected.css}
|
|
'';
|
|
}
|