mirror of
https://github.com/NixOS/nix
synced 2025-06-27 04:21:16 +02:00
* Allow the canonical system name to be specified at runtime in the
Nix config file.
This commit is contained in:
parent
a945fb7905
commit
d51aede4af
6 changed files with 27 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue