From 6ad5c9c17cbd5514ce0cc2692dd82dd6d8e5d879 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Fri, 13 Oct 2023 19:52:29 +0200 Subject: [PATCH] module: use defaultText to not depend on the configuration when building the manual I do build my workstation with `documentation.nixos.includeAllModules` to also have private modules and external stuff in my local options' reference. Not sure why exactly this breaks with error: attribute 'loader' missing at /nix/store/h6qicay9fgggx9nf6apdl6zkdpdp28xx-source/module.nix:46:19: 45| type = lib.types.bool; 46| default = config.boot.loader.systemd-boot.enable || config.boot.loader.grub.efiSupport; | ^ 47| }; but using defaultText is the usual fix that also works here. --- module.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/module.nix b/module.nix index fbbb7e8..7a9efc5 100644 --- a/module.nix +++ b/module.nix @@ -43,6 +43,7 @@ in We try to automatically detect efi based on the configured bootloader. ''; type = lib.types.bool; + defaultText = "config.boot.loader.systemd-boot.enable || config.boot.loader.grub.efiSupport"; default = config.boot.loader.systemd-boot.enable || config.boot.loader.grub.efiSupport; }; extraChecks = lib.mkOption {