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