#pragma once #include "config.h" #include "types.hh" #include #include namespace nix { enum CompressionType { COMPRESSION_NONE = 0, COMPRESSION_GZIP = 1 #if HAVE_BZLIB_H , COMPRESSION_BZIP2 = 2 #endif }; struct Settings { typedef std::map SettingsMap; Settings(); void processEnvironment(); void set(const string & name, const string & value); string get(const string & name, const string & def); Strings get(const string & name, const Strings & def); bool get(const string & name, bool def); int get(const string & name, int def); void update(); string pack(); SettingsMap getOverrides(); /* The directory where we store sources and derived files. */ Path nixStore; /* The directory where we log various operations. */ Path nixLogDir; /* The directory where state is stored. */ Path nixStateDir; /* The directory where we keep the SQLite database. */ Path nixDBPath; /* The directory where configuration files are stored. */ Path nixConfDir; /* The directory where internal helper programs are stored. */ Path nixLibexecDir; /* The directory where the main programs are stored. */ Path nixBinDir; /* File name of the socket the daemon listens to. */ Path nixDaemonSocketFile;
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-08-25 12:43:29 +0200
committerWojtek Kosior <koszko@koszko.org>2022-09-28 12:54:53 +0200
commit503e546b2b0c9dba505a4e7940f257d41ad95f67 (patch)
treec17f245f8a826d4d385923557681ad372fb58b03 /.gitignore
parent4dbbb2aec204a5cccc713e2e2098d6e0a47f8cf6 (diff)
downloadhaketilo-hydrilla-503e546b2b0c9dba505a4e7940f257d41ad95f67.tar.gz
haketilo-hydrilla-503e546b2b0c9dba505a4e7940f257d41ad95f67.zip
[proxy] properly flag failed package installations in sqlite db
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions
); void _get(Strings & res, const string & name); template void _get(N & res, const string & name); }; // FIXME: don't use a global variable. extern Settings settings; extern const string nixVersion; }