about summary refs log tree commit diff
path: root/nixos/modules/image
diff options
context:
space:
mode:
authorJulian Stecklina <js@alien8.de>2023-10-31 00:36:15 +0100
committerJulian Stecklina <js@alien8.de>2023-10-31 00:36:17 +0100
commitea3ca0b1e3a9e9a4be4bbb313fc0343c50d3c90c (patch)
tree52b95a0c28da0a183243f6a4dcf9b9ead44eb853 /nixos/modules/image
parent63678e9f3d3afecfeafa0acead6239cdb447574c (diff)
nixos/image: fix documentation build
literalExpression triggers the following error when building the
manual:

Cacheable portion of option doc build failed.
Usually this means that an option attribute that ends up in documentation (eg `default` or `description`) depends on the restricted module arguments `config` or `pkgs`.
Diffstat (limited to 'nixos/modules/image')
-rw-r--r--nixos/modules/image/repart.nix4
1 files changed, 1 insertions, 3 deletions
diff --git a/nixos/modules/image/repart.nix b/nixos/modules/image/repart.nix
index e567485c9d342..926791d857012 100644
--- a/nixos/modules/image/repart.nix
+++ b/nixos/modules/image/repart.nix
@@ -90,9 +90,7 @@ in
 
     package = lib.mkPackageOption pkgs "systemd-repart" {
       default = "systemd";
-      example = lib.literalExpression ''
-        pkgs.systemdMinimal.override { withCryptsetup = true; }
-      '';
+      example = "pkgs.systemdMinimal.override { withCryptsetup = true; }";
     };
 
     partitions = lib.mkOption {