Home Explore Blog Models CI



nixpkgs

nixos/doc/manual/configuration/profiles/clone-config.section.md
27fa41d0581c0ac319b5a14874b80aa510fa2ca7b2dffcc7000000030000020d
# 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`.

Chunks
ce7a2004 (1st chunk of `nixos/doc/manual/configuration/profiles/clone-config.section.md`)
Title: Clone Config Profile for Installer Images
Summary
The Clone Config profile, used in installer images, provides an editable `configuration.nix` file that imports all original modules, enabling users to modify and rebuild the live system. To prevent copying `configuration.nix` when the installation media doubles as the target, `installer.cloneConfig` should be set to `false`.