From a6df72809801070c7a4abd0d65d2b75855b86bf1 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Sun, 11 Dec 2016 13:49:00 +0100 Subject: [PATCH] add note about environment.etc --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 93644a2..58aaf50 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,10 @@ $ ## Install +> NOTE: the system activation scripts don't overrwrite existing etc files, +existing etc files like `/etc/bashrc` won't be used by default. +Either modify the existing file to source/import the one from `/etc/static` or remove the file. + ```bash git clone git@github.com:LnL7/nix-darwin.git export NIX_PATH=darwin=$PWD/nix-darwin:darwin-config=$PWD/config.nix:$NIX_PATH @@ -53,6 +57,8 @@ result/bin/darwin-rebuild switch if [ -n "$__ETC_BASHRC_SOURCED" -o -n "$NOSYSBASHRC" ]; then return; fi __ETC_BASHRC_SOURCED=1 + export NIX_PATH=nixpkgs=$HOME/.nix-defexpr/nixpkgs:darwin=$HOME/.nix-defexpr/darwin:darwin-config=$HOME/.nixpkgs/darwin-config.nix:$NIX_PATH + export PATH=${config.environment.systemPath}''${PATH:+:$PATH} ${config.system.build.setEnvironment}