1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2024-12-14 11:57:55 +00:00

nixpkgs-disabled: fix useGlobalPkgs assertion

This fixes the assertion that `config.nixpkgs` cannot be set if
`useGlobalPkgs` is enabled
This commit is contained in:
Devin 2024-12-04 14:17:59 -05:00 committed by Devin Droddy
parent ad48eb25cd
commit d07d7fd8bc

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