From 0edfd89d6e24064d2b0fd0853b8e19c42906dc1b Mon Sep 17 00:00:00 2001 From: Eric Corson Date: Tue, 19 Apr 2022 10:33:29 +0100 Subject: [PATCH] nixos/tools: add copySystemConfiguration to configuration file template --- nixos/modules/installer/tools/tools.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nixos/modules/installer/tools/tools.nix b/nixos/modules/installer/tools/tools.nix index 2e088b97771..bf5ec0f9690 100644 --- a/nixos/modules/installer/tools/tools.nix +++ b/nixos/modules/installer/tools/tools.nix @@ -206,6 +206,11 @@ in # Or disable the firewall altogether. # networking.firewall.enable = false; + # Copy the NixOS configuration file and link it from the resulting system + # (/run/current-system/configuration.nix). This is useful in case you + # accidentally delete configuration.nix. + # system.copySystemConfiguration = true; + # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions # on your system were taken. It‘s perfectly fine and recommended to leave