summary refs log tree commit diff
path: root/nixos/doc/manual/configuration/profiles/clone-config.section.md
blob: e2583715e5178d78a530cdf3621537b8fcaba2bb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
# Clone Config {#sec-profile-clone-config}

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.

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