home-manager/tests/modules/misc/gtk/gtk2-config-file-location.nix
2021-04-30 22:56:56 +02:00

17 lines
361 B
Nix

{ config, lib, pkgs, ... }:
with lib;
{
config = {
gtk.enable = true;
gtk.gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
nmt.script = ''
assertFileExists home-files/.config/gtk-2.0/gtkrc
assertFileRegex home-path/etc/profile.d/hm-session-vars.sh \
'GTK2_RC_FILES=.*/\.config/gtk-2.0/gtkrc'
'';
};
}