mirror of
https://github.com/nix-community/home-manager
synced 2024-11-26 21:19:45 +01:00
nixpkgs-disabled: correct assertion
Should only pass if _both_ attributes are `null`. I recently found myself in a confusing situation when I added my usual `homeConfiguration` to a `nixosConfiguration` that had `home-manager.useGlobalPackages = true`. `nixos-rebuild` was just claiming that some attributes were missing from `pkgs`, rather than asserting that my `nixpkgs.overlays` was set when it couldn’t be.
This commit is contained in:
parent
0c0268a3c8
commit
caee7806be
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ in {
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
assertions = [{
|
assertions = [{
|
||||||
assertion = cfg.config == null || cfg.overlays == null;
|
assertion = cfg.config == null && cfg.overlays == null;
|
||||||
message = ''
|
message = ''
|
||||||
`nixpkgs` options are disabled when `home-manager.useGlobalPkgs` is enabled.
|
`nixpkgs` options are disabled when `home-manager.useGlobalPkgs` is enabled.
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue