summary refs log tree commit diff
path: root/nixos/doc/manual/configuration/profiles/clone-config.xml
blob: 04fa1643d0fd06363e666648c3d664d725d54ef8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<section xmlns="http://docbook.org/ns/docbook"
         xmlns:xlink="http://www.w3.org/1999/xlink"
         xmlns:xi="http://www.w3.org/2001/XInclude"
         version="5.0"
         xml:id="sec-profile-clone-config">
 <title>Clone Config</title>

 <para>
  This profile is used in installer images. It provides an editable
  configuration.nix that imports all the modules that were also used when
  creating the image in the first place. As a result it allows users to edit
  and rebuild the live-system.
 </para>

 <para>
  On images where the installation media also becomes an installation target,
  copying over <literal>configuration.nix</literal> should be disabled by
  setting <literal>installer.cloneConfig</literal> to <literal>false</literal>.
  For example, this is done in <literal>sd-image-aarch64.nix</literal>.
 </para>
</section>