summary refs log tree commit diff
diff options
context:
space:
mode:
authorGraham Christensen <graham@grahamc.com>2018-09-29 20:37:11 -0400
committerGraham Christensen <graham@grahamc.com>2018-09-29 20:43:06 -0400
commit9622cd3b38ddbc7faa4cac2a48dbd70bd99570d0 (patch)
tree292ff541ba2c5cc3af81b6cfba267d37ce201fbc
parent243e28bc96db0827eebfe2769de7e4393f791ca0 (diff)
downloadnixpkgs-9622cd3b38ddbc7faa4cac2a48dbd70bd99570d0.tar
nixpkgs-9622cd3b38ddbc7faa4cac2a48dbd70bd99570d0.tar.gz
nixpkgs-9622cd3b38ddbc7faa4cac2a48dbd70bd99570d0.tar.bz2
nixpkgs-9622cd3b38ddbc7faa4cac2a48dbd70bd99570d0.tar.lz
nixpkgs-9622cd3b38ddbc7faa4cac2a48dbd70bd99570d0.tar.xz
nixpkgs-9622cd3b38ddbc7faa4cac2a48dbd70bd99570d0.tar.zst
nixpkgs-9622cd3b38ddbc7faa4cac2a48dbd70bd99570d0.zip
Revert "Revert "doc: Update section about imperative containers""
I fixed the problem.

This reverts commit 74df71bc8b446dd803aed3990a1148f258772f65.
-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 9bb62bc2ece..fa380477f6c 100644
--- a/nixos/doc/manual/administration/imperative-containers.xml
+++ b/nixos/doc/manual/administration/imperative-containers.xml
@@ -73,8 +73,7 @@ Linux foo 3.4.82 #1-NixOS SMP Thu Mar 20 14:44:05 UTC 2014 x86_64 GNU/Linux
  </para>
 
  <para>
-  There are several ways to change the configuration of the container. First,
-  on the host, you can edit
+  To change the configuration of the container, you can edit
   <literal>/var/lib/container/<replaceable>name</replaceable>/etc/nixos/configuration.nix</literal>,
   and run
 <screen>
@@ -87,8 +86,7 @@ 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>
@@ -97,11 +95,13 @@ Linux foo 3.4.82 #1-NixOS SMP Thu Mar 20 14:44:05 UTC 2014 x86_64 GNU/Linux
  </para>
 
  <para>
-  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.
+  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.
  </para>
 
  <para>