nixos/environment: set GTK_DATA_PREFIX
Many desktop environment modules are already setting this so it already makes sense to just do this globally.
This commit is contained in:
parent
5669b06235
commit
cc125810cb
@ -22,6 +22,7 @@ in
|
|||||||
EDITOR = mkDefault "nano";
|
EDITOR = mkDefault "nano";
|
||||||
XCURSOR_PATH = [ "$HOME/.icons" ];
|
XCURSOR_PATH = [ "$HOME/.icons" ];
|
||||||
XDG_CONFIG_DIRS = [ "/etc/xdg" ]; # needs to be before profile-relative paths to allow changes through environment.etc
|
XDG_CONFIG_DIRS = [ "/etc/xdg" ]; # needs to be before profile-relative paths to allow changes through environment.etc
|
||||||
|
GTK_DATA_PREFIX = "${config.system.path}"; # needed for gtk2 apps to find themes
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.profiles = mkAfter
|
environment.profiles = mkAfter
|
||||||
|
@ -95,13 +95,7 @@ in {
|
|||||||
|
|
||||||
environment.systemPackages = [ cfg.package editorScript desktopApplicationFile ];
|
environment.systemPackages = [ cfg.package editorScript desktopApplicationFile ];
|
||||||
|
|
||||||
environment.variables = {
|
environment.variables.EDITOR = mkIf cfg.defaultEditor (mkOverride 900 "${editorScript}/bin/emacseditor");
|
||||||
# This is required so that GTK applications launched from Emacs
|
|
||||||
# get properly themed:
|
|
||||||
GTK_DATA_PREFIX = "${config.system.path}";
|
|
||||||
} // (if cfg.defaultEditor then {
|
|
||||||
EDITOR = mkOverride 900 "${editorScript}/bin/emacseditor";
|
|
||||||
} else {});
|
|
||||||
};
|
};
|
||||||
|
|
||||||
meta.doc = ./emacs.xml;
|
meta.doc = ./emacs.xml;
|
||||||
|
@ -48,10 +48,6 @@ in
|
|||||||
services.xserver.desktopManager.session = [
|
services.xserver.desktopManager.session = [
|
||||||
{ name = "Enlightenment";
|
{ name = "Enlightenment";
|
||||||
start = ''
|
start = ''
|
||||||
# Set GTK_DATA_PREFIX so that GTK can find the themes
|
|
||||||
export GTK_DATA_PREFIX=${config.system.path}
|
|
||||||
# find theme engines
|
|
||||||
export GTK_PATH=${config.system.path}/lib/gtk-3.0:${config.system.path}/lib/gtk-2.0
|
|
||||||
export XDG_MENU_PREFIX=e-
|
export XDG_MENU_PREFIX=e-
|
||||||
|
|
||||||
export GST_PLUGIN_PATH="${GST_PLUGIN_PATH}"
|
export GST_PLUGIN_PATH="${GST_PLUGIN_PATH}"
|
||||||
|
@ -48,12 +48,6 @@ in
|
|||||||
name = "mate";
|
name = "mate";
|
||||||
bgSupport = true;
|
bgSupport = true;
|
||||||
start = ''
|
start = ''
|
||||||
# Set GTK_DATA_PREFIX so that GTK can find the themes
|
|
||||||
export GTK_DATA_PREFIX=${config.system.path}
|
|
||||||
|
|
||||||
# Find theme engines
|
|
||||||
export GTK_PATH=${config.system.path}/lib/gtk-3.0:${config.system.path}/lib/gtk-2.0
|
|
||||||
|
|
||||||
export XDG_MENU_PREFIX=mate-
|
export XDG_MENU_PREFIX=mate-
|
||||||
|
|
||||||
# Let caja find extensions
|
# Let caja find extensions
|
||||||
|
@ -107,12 +107,6 @@ in
|
|||||||
start = ''
|
start = ''
|
||||||
${cfg.extraSessionCommands}
|
${cfg.extraSessionCommands}
|
||||||
|
|
||||||
# Set GTK_PATH so that GTK can find the theme engines.
|
|
||||||
export GTK_PATH="${config.system.path}/lib/gtk-2.0:${config.system.path}/lib/gtk-3.0"
|
|
||||||
|
|
||||||
# Set GTK_DATA_PREFIX so that GTK can find the Xfce themes.
|
|
||||||
export GTK_DATA_PREFIX=${config.system.path}
|
|
||||||
|
|
||||||
${pkgs.runtimeShell} ${pkgs.xfce.xinitrc} &
|
${pkgs.runtimeShell} ${pkgs.xfce.xinitrc} &
|
||||||
waitPID=$!
|
waitPID=$!
|
||||||
'';
|
'';
|
||||||
|
@ -114,12 +114,6 @@ in
|
|||||||
name = "xfce4-14";
|
name = "xfce4-14";
|
||||||
bgSupport = true;
|
bgSupport = true;
|
||||||
start = ''
|
start = ''
|
||||||
# Set GTK_PATH so that GTK can find the theme engines.
|
|
||||||
export GTK_PATH="${config.system.path}/lib/gtk-2.0:${config.system.path}/lib/gtk-3.0"
|
|
||||||
|
|
||||||
# Set GTK_DATA_PREFIX so that GTK can find the Xfce themes.
|
|
||||||
export GTK_DATA_PREFIX=${config.system.path}
|
|
||||||
|
|
||||||
${pkgs.runtimeShell} ${pkgs.xfce4-14.xinitrc} &
|
${pkgs.runtimeShell} ${pkgs.xfce4-14.xinitrc} &
|
||||||
waitPID=$!
|
waitPID=$!
|
||||||
'';
|
'';
|
||||||
|
@ -23,9 +23,6 @@ stdenv.mkDerivation rec {
|
|||||||
The Clearlooks-Phénix project aims at creating a GTK3 port of Clearlooks,
|
The Clearlooks-Phénix project aims at creating a GTK3 port of Clearlooks,
|
||||||
the default theme for Gnome 2. Style is also included for GTK2, Unity and
|
the default theme for Gnome 2. Style is also included for GTK2, Unity and
|
||||||
for Metacity, Openbox and Xfwm4 window managers.
|
for Metacity, Openbox and Xfwm4 window managers.
|
||||||
|
|
||||||
You should install this theme into your user profile and then set
|
|
||||||
GTK_DATA_PREFIX to `~/.nix-profile`.
|
|
||||||
'';
|
'';
|
||||||
homepage = https://github.com/jpfleury/clearlooks-phenix;
|
homepage = https://github.com/jpfleury/clearlooks-phenix;
|
||||||
downloadPage = https://github.com/jpfleury/clearlooks-phenix/releases;
|
downloadPage = https://github.com/jpfleury/clearlooks-phenix/releases;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user