-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
## Installation | ||
|
||
Follow [this guide](https://zero-to-nix.com/start/install) to Install nix with [flakes](https://nix.dev/concepts/flakes.html) enabled. | ||
|
||
### Binary cache | ||
|
||
You can optionally use this project's binary cache to skip building software and download it instead. Edit `/etc/nix/nix.conf` (or related settings in NixOS config) and merge the new values separated by spaces into the options: | ||
|
||
``` | ||
substituters = ... https://cache.staging.mlabs.city/spo-anywhere | ||
trusted-public-keys = ... spo-anywhere:bmI58BmXnmeuAtMKbm3qhwiJ1RALMfo6cDwncfaGa6Q= | ||
``` | ||
|
||
## Start new project from flake | ||
|
||
Create a new directory, enter it, and initialize a new project form the spo-anywhere flake template. | ||
|
||
``` | ||
mkdir my-spo | ||
cd my-spo | ||
nix flake init --template github:mlabs-haskell/spo-anywhere | ||
``` | ||
|
||
Check that the installation script starts: | ||
|
||
``` | ||
nix run .#install -- -h | ||
``` |