diff --git a/modules/misc/nixpkgs.nix b/modules/misc/nixpkgs.nix index d86e2fd1c..23c79b0f4 100644 --- a/modules/misc/nixpkgs.nix +++ b/modules/misc/nixpkgs.nix @@ -61,10 +61,28 @@ in 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. ''; }; @@ -89,10 +107,19 @@ in 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. ''; };