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`.
This commit is contained in:
Julian Stecklina 2023-10-31 00:36:15 +01:00
parent 63678e9f3d
commit ea3ca0b1e3

View File

@ -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 {