nixpkgs.config
The configuration of the Nix Packages collection. (For details, see the Nixpkgs documentation.) It allows you to set package configuration options.
If null, then configuration is taken from
the fallback location, for example,
~/.config/nixpkgs/config.nix.
Note, this option will not apply outside your Home Manager
configuration like when installing manually through
nix-env. If you want to apply it both
inside and outside Home Manager you can put it in a separate
file and include something like
nixpkgs.config = import ./nixpkgs-config.nix;
xdg.configFile."nixpkgs/config.nix".source = ./nixpkgs-config.nix;
in your Home Manager configuration.
Type: null or (nixpkgs config)
Default:
null
Example:
{
allowBroken = true;
}
Declared by:
nixpkgs.overlays
List of overlays to use with the Nix Packages collection. (For details, see the Nixpkgs documentation.) It allows you to override packages globally. This is a function that takes as an argument the original Nixpkgs. The first argument should be used for finding dependencies, and the second should be used for overriding recipes.
If null, then the overlays are taken from
the fallback location, for example,
~/.config/nixpkgs/overlays.
Like nixpkgs.config this option only
applies within the Home Manager configuration. See
nixpkgs.config for a suggested setup that
works both internally and externally.
Type: null or (list of (nixpkgs overlay))
Default:
null
Example:
[
(final: prev: {
openssh = prev.openssh.override {
hpnSupport = true;
withKerberos = true;
kerberos = final.libkrb5;
};
})
]
Declared by: