about summary refs log tree commit diff
path: root/src/libmain/shared.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-07-06T15·30+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-07-06T15·30+0000
commitd51aede4afeb49182879f257b56394b70938028f (patch)
treecea0470eb2f38eb1c1d0adcbecc59cf78b25516e /src/libmain/shared.cc
parenta945fb7905597ff67f285b39004f607f737b14e9 (diff)
* Allow the canonical system name to be specified at runtime in the
  Nix config file.

Diffstat (limited to 'src/libmain/shared.cc')
-rw-r--r--src/libmain/shared.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libmain/shared.cc b/src/libmain/shared.cc
index 97528f123e4a..fb24e832980c 100644
--- a/src/libmain/shared.cc
+++ b/src/libmain/shared.cc
@@ -93,6 +93,8 @@ static void initAndRun(int argc, char * * argv)
     nixDBPath = getEnv("NIX_DB_DIR", nixStateDir + "/db");
     nixConfDir = canonPath(getEnv("NIX_CONF_DIR", NIX_CONF_DIR));
 
+    thisSystem = querySetting("system", SYSTEM);
+
     /* Catch SIGINT. */
     struct sigaction act, oact;
     act.sa_handler = sigintHandler;