diff options
author | Atemu <atemu.main@gmail.com> | 2023-04-16 13:03:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-16 13:03:36 +0200 |
commit | 445ef285482ece1e88a43168d79def461b2eb83e (patch) | |
tree | 860a4c4433e58ff212615933c9b3fc5d6904b2dc /doc | |
parent | 327a9c55a3294d58a28ddc6ca7eac5cd10b55aec (diff) | |
parent | d978b588655200a5510642760e9dfbbd83242119 (diff) |
Merge pull request #225748 from Atemu/buildFHSEnvBubblewrap-by-default
buildFHSEnv: use bubblewrap by default
Diffstat (limited to 'doc')
-rw-r--r-- | doc/builders/special/fhs-environments.section.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/builders/special/fhs-environments.section.md b/doc/builders/special/fhs-environments.section.md index cacad261e28ff..0adacb59cfd43 100644 --- a/doc/builders/special/fhs-environments.section.md +++ b/doc/builders/special/fhs-environments.section.md @@ -1,6 +1,6 @@ -# buildFHSUserEnv {#sec-fhs-environments} +# buildFHSEnv {#sec-fhs-environments} -`buildFHSUserEnv` provides a way to build and run FHS-compatible lightweight sandboxes. It creates an isolated root with bound `/nix/store`, so its footprint in terms of disk space needed is quite small. This allows one to run software which is hard or unfeasible to patch for NixOS -- 3rd-party source trees with FHS assumptions, games distributed as tarballs, software with integrity checking and/or external self-updated binaries. It uses Linux namespaces feature to create temporary lightweight environments which are destroyed after all child processes exit, without root user rights requirement. Accepted arguments are: +`buildFHSEnv` provides a way to build and run FHS-compatible lightweight sandboxes. It creates an isolated root with bound `/nix/store`, so its footprint in terms of disk space needed is quite small. This allows one to run software which is hard or unfeasible to patch for NixOS -- 3rd-party source trees with FHS assumptions, games distributed as tarballs, software with integrity checking and/or external self-updated binaries. It uses Linux namespaces feature to create temporary lightweight environments which are destroyed after all child processes exit, without root user rights requirement. Accepted arguments are: - `name` Environment name. @@ -26,7 +26,7 @@ One can create a simple environment using a `shell.nix` like that: ```nix { pkgs ? import <nixpkgs> {} }: -(pkgs.buildFHSUserEnv { +(pkgs.buildFHSEnv { name = "simple-x11-env"; targetPkgs = pkgs: (with pkgs; [ udev |