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:
parent
fdb66fe2e3
commit
a6df728098
1 changed files with 6 additions and 0 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue