From 460b27f69347bae8ab7bfa3222fb7cd6da6ac44e Mon Sep 17 00:00:00 2001 From: Masum Reza <50095635+JohnRTitor@users.noreply.github.com> Date: Thu, 14 Mar 2024 23:37:58 +0530 Subject: [PATCH] Use lib.optionals --- flake.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index a321e72b..e609af2f 100644 --- a/flake.nix +++ b/flake.nix @@ -89,11 +89,9 @@ ] ++ # Enable Lanzaboote if secureboot is configured - ( if (systemSettings.secureboot == true) then - [ lanzaboote.nixosModules.lanzaboote ] - else - [] # empty wrapper - ); + nixpkgs.lib.optionals (systemSettings.secureboot == true) [ + lanzaboote.nixosModules.lanzaboote + ]; specialArgs = { inherit pkgs-stable; inherit systemSettings;