about summary refs log tree commit diff
path: root/nixos/modules/installer
diff options
context:
space:
mode:
authorEric Corson <emccorson@gmail.com>2022-04-19 10:33:29 +0100
committerEric Corson <emccorson@gmail.com>2022-04-19 10:53:47 +0100
commit0edfd89d6e24064d2b0fd0853b8e19c42906dc1b (patch)
tree4548282b9caee9fa9e8283d0add1ea19e9e063b9 /nixos/modules/installer
parentb235fa2abc957923e7381bfca84f54bed453c6e9 (diff)
downloadnixlib-0edfd89d6e24064d2b0fd0853b8e19c42906dc1b.tar
nixlib-0edfd89d6e24064d2b0fd0853b8e19c42906dc1b.tar.gz
nixlib-0edfd89d6e24064d2b0fd0853b8e19c42906dc1b.tar.bz2
nixlib-0edfd89d6e24064d2b0fd0853b8e19c42906dc1b.tar.lz
nixlib-0edfd89d6e24064d2b0fd0853b8e19c42906dc1b.tar.xz
nixlib-0edfd89d6e24064d2b0fd0853b8e19c42906dc1b.tar.zst
nixlib-0edfd89d6e24064d2b0fd0853b8e19c42906dc1b.zip
nixos/tools: add copySystemConfiguration to configuration file template
Diffstat (limited to 'nixos/modules/installer')
-rw-r--r--nixos/modules/installer/tools/tools.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/nixos/modules/installer/tools/tools.nix b/nixos/modules/installer/tools/tools.nix
index 2e088b977710..bf5ec0f9690b 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