mirror of
https://github.com/nix-community/home-manager.git
synced 2024-12-14 11:57:55 +00: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 = {
|
||||
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.
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue