diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-10-09 19:21:07 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-10-09 23:35:01 +0200 |
commit | 9348f9291e5d9e4ba3c4347ea1b235640f54fd79 (patch) | |
tree | 378c234f6f9577a9a57b350b4d20a3de49ad0c11 /src/libutil/util.hh | |
parent | 26762ceb8629af95300c0cc8c372a99282060dc1 (diff) |
nix-env: Create ~/.nix-profile automatically
Diffstat (limited to 'src/libutil/util.hh')
-rw-r--r-- | src/libutil/util.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libutil/util.hh b/src/libutil/util.hh index 07c3d28ff..f057fdb2c 100644 --- a/src/libutil/util.hh +++ b/src/libutil/util.hh @@ -126,6 +126,8 @@ void deletePath(const Path & path, unsigned long long & bytesFreed); Path createTempDir(const Path & tmpRoot = "", const Path & prefix = "nix", bool includePid = true, bool useGlobalCounter = true, mode_t mode = 0755); +std::string getUserName(); + /* Return $HOME or the user's home directory from /etc/passwd. */ Path getHome(); |