1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-13 20:30:02 +00:00

readme: fix ~/.bashrc instructions

This commit is contained in:
Daiderd Jordan 2017-06-03 11:27:22 +02:00
parent 5638925939
commit 1bd24987c5
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -8,6 +8,10 @@ Nix modules for darwin, `/etc/nixos/configuration.nix` for macOS.
## Install
```bash
bash <(curl https://raw.githubusercontent.com/LnL7/nix-darwin/master/bootstrap.sh)
```
This will link the system profile to `/run/current-system`. You have to create `/run` or symlink it to `private/var/run`.
If you use a symlink, you'll probably also want to add `services.activate-system.enable = true;` to your configuration.
@ -16,11 +20,7 @@ Either modify the existing file to source/import the one from `/etc/static` or r
- `mv /etc/bashrc /etc/bashrc.orig`
- `echo 'if test -e /etc/static/bashrc; then . /etc/static/bashrc; fi' | sudo tee -a /etc/bashrc`
- `echo 'if test -e /etc/static/bashrc; then . /etc/static/bashrc; fi' | sudo tee -a ~/.bashrc`
```bash
bash <(curl https://raw.githubusercontent.com/LnL7/nix-darwin/master/bootstrap.sh)
```
- `echo 'if test -e /etc/static/bashrc; then . /etc/static/bashrc; fi' | tee -a ~/.bashrc`
## Example configuration