Home Explore Blog Models CI



nixpkgs

1st chunk of `nixos/doc/manual/configuration/profiles/clone-config.section.md`
ce7a200470751d0dd35917de8d334db8d76c7306bf13d828000000010000020d
# 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`.

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`.