diff --git a/docs/nix_dev_env.md b/docs/nix_dev_env.md --- a/docs/nix_dev_env.md +++ b/docs/nix_dev_env.md @@ -11,7 +11,7 @@ # Supported workflows | Workflow | Supported on macOS | -| ----------------------------- | ------------------- +| ----------------------------- | ------------------ | | keyserver (Node.js) | ❌ | | web (Webpack) | ❌ | | native iOS (React Native) | ❌ | @@ -27,28 +27,10 @@ ## Nix package manager -Go to the NixOS website to install the Nix package manager for [macOS](https://nixos.org/download.html#nix-install-macos) or [Linux](https://nixos.org/download.html). - -Nix manages all packages within the Nix store which needs to be located at `/nix`. The store location in integral to how Nix is able to determine the location of packages, and cannot be moved. In addition, `/nix` cannot be a symlink because of the requirement to mount paths for builds. The installation script guides you through the setup process of creating the Nix store and other requirements with minimal interaction. - -If you’d like to audit the script to alleviate any security concern, you can view it [here](https://nixos.org/nix/install). - -# Configuration - -## Nix Flakes - -[Nix Flakes](https://nixos.wiki/wiki/Flakes) are the new canonical way to expose Nix packages. The [exposed packages](https://nixos.wiki/wiki/Flakes#Output_schema) can be normal Nix packages, [overlays](https://nixos.wiki/wiki/Overlays), [modules](https://nixos.wiki/wiki/Module), or even [entire systems](https://nixos.wiki/wiki/Flakes#Using_nix_flakes_with_NixOS). The `flake.nix` file is used to communicate what is exposed and the `flake.lock` file is used to ensure that all dependencies are captured in an immutable fashion. - -You will need to edit the Nix configuration file to enable Nix Flakes. - -``` -sudo vim /etc/nix/nix.conf -``` - -Add the following line to the file: +To install and configure the [Nix package manager](https://nixos.org), please run: ``` -experimental-features = nix-command flakes +./scripts/install_nix.sh ``` # Development Environment