From 78e20633d9df3aa27846dc28d7adf9debae435a4 Mon Sep 17 00:00:00 2001 From: Lucy Date: Sun, 8 Dec 2024 03:07:02 +0100 Subject: [PATCH] doc: Add warning for configuration file copy in flake systems --- nixos/modules/system/activation/top-level.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/nixos/modules/system/activation/top-level.nix b/nixos/modules/system/activation/top-level.nix index ed0ece19f2fa2..a4cdfb5859598 100644 --- a/nixos/modules/system/activation/top-level.nix +++ b/nixos/modules/system/activation/top-level.nix @@ -135,11 +135,10 @@ in type = types.bool; default = false; description = '' - If enabled, copies the NixOS configuration file - (usually {file}`/etc/nixos/configuration.nix`) - and links it from the resulting system - (getting to {file}`/run/current-system/configuration.nix`). - Note that only this single file is copied, even if it imports others. + If enabled, this option copies the NixOS + configuration file (usually {file} = /etc/nixos/configuration.nix) and symlinks it from the resulting system {{file} to /run/current-system/configuration.nix} + Note: that only this single file is copied, even if it import others. + Warning: This feature cannot be used when the system is configured as a flake. ''; };