about summary refs log tree commit diff
path: root/src/libutil/config.hh
AgeCommit message (Collapse)AuthorFilesLines
2017-05-03 Fix build on gcc 4.9Eelco Dolstra1-1/+4
http://hydra.nixos.org/build/52408843
2017-04-20 Improve nix show-config --jsonEelco Dolstra1-0/+8
In particular, show descriptions. This could be used for manpage generation etc.
2017-04-20 Setting: Remove "Tag" template argumentEelco Dolstra1-18/+30
2017-04-20 Read per-user settings from ~/.config/nix/nix.confEelco Dolstra1-2/+8
2017-04-13 Convert Settings to the new config systemEelco Dolstra1-5/+17
This makes all config options self-documenting. Unknown or unparseable config settings and --option flags now cause a warning.
2017-04-13 Add a Config class to simplify adding configuration settingsEelco Dolstra1-0/+151
The typical use is to inherit Config and add Setting<T> members: class MyClass : private Config { Setting<int> foo{this, 123, "foo", "the number of foos to use"}; Setting<std::string> bar{this, "blabla", "bar", "the name of the bar"}; MyClass() : Config(readConfigFile("/etc/my-app.conf")) { std::cout << foo << "\n"; // will print 123 unless overriden } }; Currently, this is used by Store and its subclasses for store parameters. You now get a warning if you specify a non-existant store parameter in a store URI.