user-local config.nix path fixed in docs

This commit is contained in:
Dmitry Vyal 2017-05-27 13:33:22 +03:00
parent f06f4a0728
commit 0f86046db5
2 changed files with 3 additions and 3 deletions

View File

@ -710,7 +710,7 @@ nix-env -if build.nix
``` ```
Now you can use the Python interpreter, as well as the extra packages that you added to the environment. Now you can use the Python interpreter, as well as the extra packages that you added to the environment.
#### Environment defined in `~/.nixpkgs/config.nix` #### Environment defined in `~/.config/nixpkgs/config.nix`
If you prefer to, you could also add the environment as a package override to the Nixpkgs set. If you prefer to, you could also add the environment as a package override to the Nixpkgs set.
```nix ```nix

View File

@ -1,7 +1,7 @@
# idea: provide a build environments for your developement of preference # idea: provide a build environments for your developement of preference
/* /*
#### examples of use: #### #### examples of use: ####
# Add this to your ~/.nixpkgs/config.nix: # Add this to your ~/.config/nixpkgs/config.nix:
{ {
packageOverrides = pkgs : with pkgs; { packageOverrides = pkgs : with pkgs; {
sdlEnv = pkgs.myEnvFun { sdlEnv = pkgs.myEnvFun {
@ -22,7 +22,7 @@
##### Another example, more complicated but achieving more: ####### ##### Another example, more complicated but achieving more: #######
# Make an environment to build nix from source and create ctags (tagfiles can # Make an environment to build nix from source and create ctags (tagfiles can
# be extracted from TAG_FILES) from every source package. Here would be a # be extracted from TAG_FILES) from every source package. Here would be a
# full ~/.nixpkgs/config.nix # full ~/.config/nixpkgs/config.nix
{ {
packageOverrides = pkgs : with pkgs; with sourceAndTags; packageOverrides = pkgs : with pkgs; with sourceAndTags;
let complicatedMyEnv = { name, buildInputs ? [], cTags ? [], extraCmds ? ""}: let complicatedMyEnv = { name, buildInputs ? [], cTags ? [], extraCmds ? ""}: