Nix
2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Toggle main menu visibility
Loading...
Searching...
No Matches
users.hh
Go to the documentation of this file.
1
#pragma once
3
4
#include <filesystem>
5
#ifndef _WIN32
6
# include <sys/types.h>
7
#endif
8
9
#include "
nix/util/types.hh
"
10
11
namespace
nix {
12
13
std::string getUserName();
14
15
#ifndef _WIN32
19
std::filesystem::path
getHomeOf
(uid_t userId);
20
#endif
21
25
std::filesystem::path
getHome
();
26
30
std::filesystem::path
getCacheDir
();
31
35
std::filesystem::path
getConfigDir
();
36
40
std::vector<std::filesystem::path>
getConfigDirs
();
41
45
std::filesystem::path
getDataDir
();
46
50
std::filesystem::path
getStateDir
();
51
55
std::filesystem::path
createNixStateDir
();
56
61
std::string
expandTilde
(std::string_view path);
62
68
bool
isRootUser
();
69
70
}
// namespace nix
types.hh
nix::getCacheDir
std::filesystem::path getCacheDir()
Definition
users.cc:13
nix::getConfigDir
std::filesystem::path getConfigDir()
Definition
users.cc:25
nix::getHomeOf
std::filesystem::path getHomeOf(uid_t userId)
Definition
users.cc:22
nix::isRootUser
bool isRootUser()
Definition
users.cc:65
nix::getDataDir
std::filesystem::path getDataDir()
Definition
users.cc:51
nix::createNixStateDir
std::filesystem::path createNixStateDir()
Definition
users.cc:75
nix::getHome
std::filesystem::path getHome()
Definition
users.cc:32
nix::getStateDir
std::filesystem::path getStateDir()
Definition
users.cc:63
nix::expandTilde
std::string expandTilde(std::string_view path)
Definition
users.cc:82
nix::getConfigDirs
std::vector< std::filesystem::path > getConfigDirs()
Definition
users.cc:37
libutil
include
nix
util
users.hh
Generated by
1.18.0