1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00

add note about environment.etc

This commit is contained in:
Daiderd Jordan 2016-12-11 13:49:00 +01:00
parent fdb66fe2e3
commit a6df728098
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -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}