From e181f992ed50208da7c2fa5b99234dab2dc1ccc9 Mon Sep 17 00:00:00 2001 From: Niklas Choinowski Date: Mon, 17 Mar 2025 18:30:28 +0100 Subject: [PATCH] Fix: use mkIf instead of optionals to prevent empty overlays --- nix/module.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix/module.nix b/nix/module.nix index 73f3702..4c54c46 100644 --- a/nix/module.nix +++ b/nix/module.nix @@ -637,7 +637,7 @@ in in mkIf cfg.enable { # nixpkgs.overlays = if cfg.overlay.enable then [ self.overlay ] else null; - nixpkgs.overlays = lib.optionals cfg.overlay.enable [ self.overlay ]; + nixpkgs.overlays = lib.mkIf cfg.overlay.enable [ self.overlay ]; home.packages = [ package