]> Git — Sourcephile - julm/julm-nix.git/blob - nixos/profiles/graphical/gtk-workaround.nix
gtk: workaround for unpackaged .jar using GTK
[julm/julm-nix.git] / nixos / profiles / graphical / gtk-workaround.nix
1 {
2 pkgs,
3 lib,
4 config,
5 ...
6 }:
7 # ExplanationNote: this is a workaround
8 # to let .jar files not packages in nixpkgs
9 # (hence not using wrapGAppsNoGuiHook)
10 # to not crash with the error:
11 #
12 # No GSettings schemas are installed on the system
13 #
14 {
15 environment.systemPackages = [
16 pkgs.gtk3
17 ];
18
19 environment.variables = rec {
20 GSETTINGS_SCHEMA_DIR = "${pkgs.gtk3}/share/gsettings-schemas/${pkgs.gtk3.name}/glib-2.0/schemas";
21 };
22 }