about summary refs log tree commit diff
path: root/nixos/doc
diff options
context:
space:
mode:
authorArian van Putten <aeroboy94@gmail.com>2018-10-05 15:48:41 +0200
committerArian van Putten <aeroboy94@gmail.com>2018-10-05 18:36:56 +0200
commitbb31835b1d2d1933a6c1d2cb196491ba1efa9233 (patch)
tree35cad7036650d11756b166c60e1ad0c783bc226d /nixos/doc
parent3624bb536244ea99f9f9a6d18ff00bbe4a5204af (diff)
downloadnixlib-bb31835b1d2d1933a6c1d2cb196491ba1efa9233.tar
nixlib-bb31835b1d2d1933a6c1d2cb196491ba1efa9233.tar.gz
nixlib-bb31835b1d2d1933a6c1d2cb196491ba1efa9233.tar.bz2
nixlib-bb31835b1d2d1933a6c1d2cb196491ba1efa9233.tar.lz
nixlib-bb31835b1d2d1933a6c1d2cb196491ba1efa9233.tar.xz
nixlib-bb31835b1d2d1933a6c1d2cb196491ba1efa9233.tar.zst
nixlib-bb31835b1d2d1933a6c1d2cb196491ba1efa9233.zip
Revert "Revert "Revert "doc: Update section about imperative containers"""
nixos-container can now execute nix commands again inside the container

This reverts commit 9622cd3b38ddbc7faa4cac2a48dbd70bd99570d0.
Diffstat (limited to 'nixos/doc')
-rw-r--r--nixos/doc/manual/administration/imperative-containers.xml18
1 files changed, 9 insertions, 9 deletions
diff --git a/nixos/doc/manual/administration/imperative-containers.xml b/nixos/doc/manual/administration/imperative-containers.xml
index fa380477f6cb..9bb62bc2ece9 100644
--- a/nixos/doc/manual/administration/imperative-containers.xml
+++ b/nixos/doc/manual/administration/imperative-containers.xml
@@ -73,7 +73,8 @@ Linux foo 3.4.82 #1-NixOS SMP Thu Mar 20 14:44:05 UTC 2014 x86_64 GNU/Linux
  </para>
 
  <para>
-  To change the configuration of the container, you can edit
+  There are several ways to change the configuration of the container. First,
+  on the host, you can edit
   <literal>/var/lib/container/<replaceable>name</replaceable>/etc/nixos/configuration.nix</literal>,
   and run
 <screen>
@@ -86,7 +87,8 @@ Linux foo 3.4.82 #1-NixOS SMP Thu Mar 20 14:44:05 UTC 2014 x86_64 GNU/Linux
   <xref linkend="opt-services.httpd.enable"/> = true;
   <xref linkend="opt-services.httpd.adminAddr"/> = "foo@example.org";
   <xref linkend="opt-networking.firewall.allowedTCPPorts"/> = [ 80 ];
-  '
+'
+
 # curl http://$(nixos-container show-ip foo)/
 &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">…
 </screen>
@@ -95,13 +97,11 @@ Linux foo 3.4.82 #1-NixOS SMP Thu Mar 20 14:44:05 UTC 2014 x86_64 GNU/Linux
  </para>
 
  <para>
-  Note that in previous versions of NixOS (17.09 and earlier) one could also
-  use all nix-related commands (like <command>nixos-rebuild switch</command>)
-  from inside the container. However, since the release of Nix 2.0 this is not
-  supported anymore. Supporting Nix commands inside the container might be
-  possible again in future versions. See
-  <link xlink:href="https://github.com/NixOS/nixpkgs/issues/40355">the github
-  issue</link> for tracking progress on this issue.
+  Alternatively, you can change the configuration from within the container
+  itself by running <command>nixos-rebuild switch</command> inside the
+  container. Note that the container by default does not have a copy of the
+  NixOS channel, so you should run <command>nix-channel --update</command>
+  first.
  </para>
 
  <para>