![]() |
Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
|
Go to the source code of this file.
Functions | |
| std::string | nix::getUserName () |
| std::filesystem::path | nix::getHomeOf (uid_t userId) |
| std::filesystem::path | nix::getHome () |
| std::filesystem::path | nix::getCacheDir () |
| std::filesystem::path | nix::getConfigDir () |
| std::vector< std::filesystem::path > | nix::getConfigDirs () |
| std::filesystem::path | nix::getDataDir () |
| std::filesystem::path | nix::getStateDir () |
| std::filesystem::path | nix::createNixStateDir () |
| std::string | nix::expandTilde (std::string_view path) |
| bool | nix::isRootUser () |
| std::filesystem::path nix::createNixStateDir | ( | ) |
Create the Nix state directory and return the path to it.
| std::string nix::expandTilde | ( | std::string_view | path | ) |
Perform tilde expansion on a path, replacing tilde with the user's home directory.
| std::filesystem::path nix::getCacheDir | ( | ) |
| std::filesystem::path nix::getConfigDir | ( | ) |
| std::vector< std::filesystem::path > nix::getConfigDirs | ( | ) |
| std::filesystem::path nix::getDataDir | ( | ) |
| std::filesystem::path nix::getHome | ( | ) |
| std::filesystem::path nix::getHomeOf | ( | uid_t | userId | ) |
| std::filesystem::path nix::getStateDir | ( | ) |
| bool nix::isRootUser | ( | ) |
Is the current user UID 0 on Unix?
Currently always false on Windows, but that may change.