1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-03-06 16:57:03 +00:00

nixpkgs-disabled: fix useGlobalPkgs assertion (#6172)

This fixes the assertion that `config.nixpkgs` cannot be set if
`useGlobalPkgs` is enabled
This commit is contained in:
Devin 2025-02-15 22:34:21 -05:00 committed by GitHub
parent 45c07fcf7d
commit eb44c1601e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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