From f4a871a401059ff0662ef86a059742d47d45a5bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Gro=C3=9Fmann?= Date: Fri, 22 Dec 2023 20:48:48 +0100 Subject: [PATCH] fix: type system shenanigans --- modules/boot.nix | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/modules/boot.nix b/modules/boot.nix index ec43ea5..ee16167 100644 --- a/modules/boot.nix +++ b/modules/boot.nix @@ -25,9 +25,14 @@ in lib.mkIf (config.boot.mode != null) { - "efi" = efi-conf; - "bios" = bios-conf; - "secureboot" = throw "not yet implemented"; + efi = efi-conf; + bios = bios-conf; + secureboot = throw "not yet implemented"; + "" = {}; } - .${config.boot.mode}; + .${ + if config.boot.mode == null + then "" + else config.boot.mode + }; }