summary refs log tree commit diff
path: root/nixos/modules/system/boot/stage-1.nix
diff options
context:
space:
mode:
authorKeshav Kini <keshav.kini@gmail.com>2020-07-26 17:05:21 -0700
committerKeshav Kini <keshav.kini@gmail.com>2020-07-29 14:39:21 -0700
commit5e86bba0827a96388bff25ae85d4e163a12016f1 (patch)
tree5e9c1696834f95884527548d5844bb0a41d61341 /nixos/modules/system/boot/stage-1.nix
parentea1287110f3fa124d31e59520f5c248029bd74da (diff)
downloadnixpkgs-5e86bba0827a96388bff25ae85d4e163a12016f1.tar
nixpkgs-5e86bba0827a96388bff25ae85d4e163a12016f1.tar.gz
nixpkgs-5e86bba0827a96388bff25ae85d4e163a12016f1.tar.bz2
nixpkgs-5e86bba0827a96388bff25ae85d4e163a12016f1.tar.lz
nixpkgs-5e86bba0827a96388bff25ae85d4e163a12016f1.tar.xz
nixpkgs-5e86bba0827a96388bff25ae85d4e163a12016f1.tar.zst
nixpkgs-5e86bba0827a96388bff25ae85d4e163a12016f1.zip
nixos/boot: some documentation improvements
- Give a more accurate description of how fileSystems.<name/>.neededForBoot
  works

- Give a more detailed description of how fileSystems.<name/>.encrypted.keyFile
  works
Diffstat (limited to 'nixos/modules/system/boot/stage-1.nix')
-rw-r--r--nixos/modules/system/boot/stage-1.nix10
1 files changed, 6 insertions, 4 deletions
diff --git a/nixos/modules/system/boot/stage-1.nix b/nixos/modules/system/boot/stage-1.nix
index 63005b26f6f..7f13f67e8ef 100644
--- a/nixos/modules/system/boot/stage-1.nix
+++ b/nixos/modules/system/boot/stage-1.nix
@@ -559,10 +559,12 @@ in
           default = false;
           type = types.bool;
           description = ''
-            If set, this file system will be mounted in the initial
-            ramdisk.  By default, this applies to the root file system
-            and to the file system containing
-            <filename>/nix/store</filename>.
+            If set, this file system will be mounted in the initial ramdisk.
+            Note that the file system will always be mounted in the initial
+            ramdisk if its mount point is one of the following:
+            ${concatStringsSep ", " (
+              forEach utils.pathsNeededForBoot (i: "<filename>${i}</filename>")
+            )}.
           '';
         };
       });