1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#pragma once
///@file

#include "lix/libutil/types.hh"
#include "lix/libutil/config.hh"

#include <map>
#include <limits>

#include <sys/types.h>

namespace nix {

enum class AcceptFlakeConfig { False, Ask, True };

void to_json(JSON & j, const AcceptFlakeConfig & e);
void from_json(const JSON & j, AcceptFlakeConfig & e);

struct FetchSettings : public Config
{
    FetchSettings();

#include "lix/libfetchers/libfetchers-settings.gen.inc"
};

// FIXME: don't use a global variable.
extern FetchSettings fetchSettings;

}