From f6a05b15a6cd45563c0c2c3811f9874ebba6d619 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Sat, 26 Aug 2017 12:10:14 +0200 Subject: [PATCH] info: use XDG_CACHE_HOME if defined (cherry picked from commit a30751464acd50a47a40da66de486d851762f63f) --- modules/programs/info.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/programs/info.nix b/modules/programs/info.nix index 65f1e3a09..3042331c9 100644 --- a/modules/programs/info.nix +++ b/modules/programs/info.nix @@ -42,7 +42,7 @@ in enable = mkEnableOption "GNU Info"; homeInfoDirLocation = mkOption { - default = "$HOME/.cache/info"; + default = "\${XDG_CACHE_HOME:-$HOME/.cache}/info"; description = '' Directory in which to store the info dir file within your home.