mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-15 02:36:16 +02:00
libutil: enable Xp::Flakes, Xp::NixCommand and Xp::ReplFlake by default
This commit is contained in:
parent
37f9639938
commit
cb263a33b9
1 changed files with 11 additions and 0 deletions
|
@ -477,6 +477,17 @@ static GlobalConfig::Register rSettings(&experimentalFeatureSettings);
|
|||
|
||||
bool ExperimentalFeatureSettings::isEnabled(const ExperimentalFeature & feature) const
|
||||
{
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wswitch-enum"
|
||||
switch (feature) {
|
||||
case ExperimentalFeature::Flakes:
|
||||
case ExperimentalFeature::NixCommand:
|
||||
case ExperimentalFeature::ReplFlake:
|
||||
return true;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
#pragma GCC diagnostic pop
|
||||
auto & f = experimentalFeatures.get();
|
||||
return std::find(f.begin(), f.end(), feature) != f.end();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue