From 40651fb6b27f794035fde029e0057085ed182991 Mon Sep 17 00:00:00 2001 From: LordGrimmauld Date: Sat, 16 Mar 2024 11:02:59 +0100 Subject: [PATCH] attempt to fix imports --- default.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/default.nix b/default.nix index e2d06b5..65ab9a8 100644 --- a/default.nix +++ b/default.nix @@ -13,9 +13,8 @@ in { }; }; - config = with cfg; lib.mkIf (enable) { - imports = [] - ++ optionals cfg.enableLocale [./modules/localisation.nix] - ; - }; + imports = [] ++ + (optionals cfg.enable ([] + ++ optionals cfg.enableLocale [./modules/localisation.nix] + )); }