Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
users.hh
Go to the documentation of this file.
1#pragma once
3
4#include "types.hh"
5
6#ifndef _WIN32
7# include <sys/types.h>
8#endif
9
10namespace nix {
11
12std::string getUserName();
13
14#ifndef _WIN32
18Path getHomeOf(uid_t userId);
19#endif
20
25
29Path getCacheDir();
30
34Path getConfigDir();
35
39std::vector<Path> getConfigDirs();
40
44Path getDataDir();
45
49Path getStateDir();
50
54Path createNixStateDir();
55
60std::string expandTilde(std::string_view path);
61
62
69
70}
std::string Path
Definition types.hh:22
Path getHome()
Path getHomeOf(uid_t userId)
bool isRootUser()