about summary refs log tree commit diff
path: root/nixos/modules/system
diff options
context:
space:
mode:
authorpennae <github@quasiparticle.net>2022-08-29 19:19:32 +0200
committerpennae <github@quasiparticle.net>2022-08-31 16:21:14 +0200
commit5841c386a0ce5fc02b1d32a2e423e81923c32052 (patch)
tree0da4bec3b93ce7df752dc227c6e53fea30231bbb /nixos/modules/system
parent9c3c13b50d02380cda1c834bc15cff3346956ea4 (diff)
downloadnixlib-5841c386a0ce5fc02b1d32a2e423e81923c32052.tar
nixlib-5841c386a0ce5fc02b1d32a2e423e81923c32052.tar.gz
nixlib-5841c386a0ce5fc02b1d32a2e423e81923c32052.tar.bz2
nixlib-5841c386a0ce5fc02b1d32a2e423e81923c32052.tar.lz
nixlib-5841c386a0ce5fc02b1d32a2e423e81923c32052.tar.xz
nixlib-5841c386a0ce5fc02b1d32a2e423e81923c32052.tar.zst
nixlib-5841c386a0ce5fc02b1d32a2e423e81923c32052.zip
nixos/*: remove indentation from long enable options
the way these are written they introduce lots of whitespace in each
line, which will cause those lines to render as code when converted to
markdown. override the whole description instead.
Diffstat (limited to 'nixos/modules/system')
-rw-r--r--nixos/modules/system/boot/systemd/initrd.nix13
1 files changed, 8 insertions, 5 deletions
diff --git a/nixos/modules/system/boot/systemd/initrd.nix b/nixos/modules/system/boot/systemd/initrd.nix
index 8b3bbfdd2499..6b4e6834c7bf 100644
--- a/nixos/modules/system/boot/systemd/initrd.nix
+++ b/nixos/modules/system/boot/systemd/initrd.nix
@@ -132,12 +132,15 @@ let
 
 in {
   options.boot.initrd.systemd = {
-    enable = mkEnableOption ''systemd in initrd.
+    enable = mkEnableOption "systemd in initrd" // {
+      description = ''
+        Whether to enable systemd in initrd.
 
-      Note: This is in very early development and is highly
-      experimental. Most of the features NixOS supports in initrd are
-      not yet supported by the intrd generated with this option.
-    '';
+        Note: This is in very early development and is highly
+        experimental. Most of the features NixOS supports in initrd are
+        not yet supported by the intrd generated with this option.
+      '';
+    };
 
     package = (mkPackageOption pkgs "systemd" {
       default = "systemdStage1";