use lib.optional

This commit is contained in:
do butterflies cry? 2026-02-19 22:41:17 +10:00
parent 8f7eb8ff3f
commit 43f5c8581e

View file

@ -13,6 +13,7 @@
# limitations under the License. # limitations under the License.
{ {
root, root,
lib,
system, system,
_cerulean, _cerulean,
... ...
@ -24,11 +25,7 @@
# options declarations # options declarations
(import ./nixpkgs.nix (args // {contextName = "hosts";})) (import ./nixpkgs.nix (args // {contextName = "hosts";}))
] ]
++ ( ++ lib.optional (_cerulean.homeManager != null) [./home-manager.nix];
if _cerulean.homeManager != null
then [./home-manager.nix]
else []
);
environment.systemPackages = with _cerulean.inputs; [ environment.systemPackages = with _cerulean.inputs; [
deploy-rs.packages.${system}.default deploy-rs.packages.${system}.default