From ea3ca0b1e3a9e9a4be4bbb313fc0343c50d3c90c Mon Sep 17 00:00:00 2001 From: Julian Stecklina Date: Tue, 31 Oct 2023 00:36:15 +0100 Subject: 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`. --- nixos/modules/image/repart.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'nixos/modules') diff --git a/nixos/modules/image/repart.nix b/nixos/modules/image/repart.nix index e567485c9d34..926791d85701 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 { -- cgit 1.4.1