From 0f86046db52a7fa15df922ed35c1a16349ce728d Mon Sep 17 00:00:00 2001 From: Dmitry Vyal Date: Sat, 27 May 2017 13:33:22 +0300 Subject: [PATCH] user-local config.nix path fixed in docs --- doc/languages-frameworks/python.md | 2 +- pkgs/misc/my-env/default.nix | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/languages-frameworks/python.md b/doc/languages-frameworks/python.md index d9306ae56bd5..c17739825bc6 100644 --- a/doc/languages-frameworks/python.md +++ b/doc/languages-frameworks/python.md @@ -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. -#### 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. ```nix diff --git a/pkgs/misc/my-env/default.nix b/pkgs/misc/my-env/default.nix index ffdaf3949aea..13102877d7e7 100644 --- a/pkgs/misc/my-env/default.nix +++ b/pkgs/misc/my-env/default.nix @@ -1,7 +1,7 @@ # idea: provide a build environments for your developement of preference /* #### examples of use: #### - # Add this to your ~/.nixpkgs/config.nix: + # Add this to your ~/.config/nixpkgs/config.nix: { packageOverrides = pkgs : with pkgs; { sdlEnv = pkgs.myEnvFun { @@ -22,7 +22,7 @@ ##### Another example, more complicated but achieving more: ####### # 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 - # full ~/.nixpkgs/config.nix + # full ~/.config/nixpkgs/config.nix { packageOverrides = pkgs : with pkgs; with sourceAndTags; let complicatedMyEnv = { name, buildInputs ? [], cTags ? [], extraCmds ? ""}: