Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
environment-variables.hh
Go to the documentation of this file.
1#pragma once
8
9#include <map>
10#include <optional>
11#include <string>
12
13
14namespace nix {
15
19std::optional<std::string> getEnv(const std::string & key);
20
25std::optional<std::string> getEnvNonEmpty(const std::string & key);
26
30std::map<std::string, std::string> getEnv();
31
35void clearEnv();
36
40void replaceEnv(const std::map<std::string, std::string> & newEnv);
41
42}