From d07d7fd8bc8fe97417cb769643996e9ad55e7920 Mon Sep 17 00:00:00 2001 From: Devin <90054389+justDeeevin@users.noreply.github.com> Date: Wed, 4 Dec 2024 14:17:59 -0500 Subject: [PATCH] nixpkgs-disabled: fix `useGlobalPkgs` assertion This fixes the assertion that `config.nixpkgs` cannot be set if `useGlobalPkgs` is enabled --- modules/misc/nixpkgs-disabled.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/misc/nixpkgs-disabled.nix b/modules/misc/nixpkgs-disabled.nix index ab0f35df7..09afc446e 100644 --- a/modules/misc/nixpkgs-disabled.nix +++ b/modules/misc/nixpkgs-disabled.nix @@ -64,7 +64,7 @@ in { config = { assertions = [{ - assertion = cfg.config == null || cfg.overlays == null; + assertion = cfg.config == null && cfg.overlays == null; message = '' `nixpkgs` options are disabled when `home-manager.useGlobalPkgs` is enabled. '';