From df6590abfc650d23532ef097892f61ba6d203c5f Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Thu, 4 Jan 2018 12:19:34 +0100 Subject: [PATCH] home-environment: describe session variable values a bit --- modules/home-environment.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/home-environment.nix b/modules/home-environment.nix index 61ca0649e..77850a8e3 100644 --- a/modules/home-environment.nix +++ b/modules/home-environment.nix @@ -128,6 +128,15 @@ in description = '' Environment variables to always set at login. + The values may refer to other environment variables using + POSIX.2 style variable references. For example, a variable + parameter may be referenced as + $parameter or ''${parameter}. A + default value foo may be given as per + ''${parameter:-foo} and, similarly, an alternate + value bar can be given as per + ''${parameter:+bar}. + Note, these variables may be set in any order so no session variable may have a runtime dependency on another session variable. In particular code like