Skip to content

Commit

Permalink
Use lib.optionals
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRTitor committed Mar 14, 2024
1 parent 91af043 commit 460b27f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 460b27f

Please sign in to comment.