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. '';