From 8a1561bba6604e375846457e9ddfc5391c1a4e0a Mon Sep 17 00:00:00 2001 From: Lucy Date: Sun, 29 Dec 2024 10:33:35 +0100 Subject: [PATCH] doc: Add warning for configuration file copy in flake systems --- nixos/modules/system/activation/top-level.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/modules/system/activation/top-level.nix b/nixos/modules/system/activation/top-level.nix index 47868a6862ff..85e5631e77a2 100644 --- a/nixos/modules/system/activation/top-level.nix +++ b/nixos/modules/system/activation/top-level.nix @@ -154,9 +154,10 @@ in description = '' If enabled, copies the NixOS configuration file (usually {file}`/etc/nixos/configuration.nix`) - and links it from the resulting system + and symlinks 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. + Warning: This feature cannot be used when the system is configured by a flake ''; };