gtk2: respect home.preferXdgDirectories
This commit is contained in:
committed by
Austin Horstman
parent
521d5ea1a2
commit
a207da48e4
@@ -91,8 +91,17 @@ in
|
||||
|
||||
configLocation = mkOption {
|
||||
type = types.path;
|
||||
default = "${config.home.homeDirectory}/.gtkrc-2.0";
|
||||
defaultText = literalExpression ''"''${config.home.homeDirectory}/.gtkrc-2.0"'';
|
||||
default =
|
||||
if config.home.preferXdgDirectories then
|
||||
"${config.xdg.configHome}/gtk-2.0/gtkrc"
|
||||
else
|
||||
"${config.home.homeDirectory}/.gtkrc-2.0";
|
||||
defaultText = literalExpression ''
|
||||
if config.home.preferXdgDirectories then
|
||||
"''${config.xdg.configHome}/gtk-2.0/gtkrc"
|
||||
else
|
||||
"''${config.home.homeDirectory}/.gtkrc-2.0";
|
||||
'';
|
||||
example = literalExpression ''"''${config.xdg.configHome}/gtk-2.0/gtkrc"'';
|
||||
description = "The location of the GTK 2 configuration file.";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user