diff options
author | zimbatm <zimbatm@zimbatm.com> | 2020-03-30 15:31:14 +0200 |
---|---|---|
committer | zimbatm <zimbatm@zimbatm.com> | 2020-04-14 18:45:06 +0200 |
commit | 895516cadf0739dd8359a38d503e0aaf5068dc4b (patch) | |
tree | 7ba6876161f27c1dae6cca0922a8b9c0d6b11144 /src/libstore/globals.hh | |
parent | 3abf6d03c611417b309fdedf4323c08e6afbcd9c (diff) |
add NIX_USER_CONF_FILES
Motivation: maintain project-level configuration files.
Document the whole situation a bit better so that it corresponds to the
implementation, and add NIX_USER_CONF_FILES that allows overriding
which user files Nix will load during startup.
Diffstat (limited to 'src/libstore/globals.hh')
-rw-r--r-- | src/libstore/globals.hh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/libstore/globals.hh b/src/libstore/globals.hh index 40f350f0b..da95fd3ae 100644 --- a/src/libstore/globals.hh +++ b/src/libstore/globals.hh @@ -53,9 +53,12 @@ public: /* The directory where state is stored. */ Path nixStateDir; - /* The directory where configuration files are stored. */ + /* The directory where system configuration files are stored. */ Path nixConfDir; + /* A list of user configuration files to load. */ + std::vector<Path> nixUserConfFiles; + /* The directory where internal helper programs are stored. */ Path nixLibexecDir; @@ -378,6 +381,9 @@ void initPlugins(); void loadConfFile(); +// Used by the Settings constructor +std::vector<Path> getUserConfigFiles(); + extern const string nixVersion; } |