aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornotgne22020-11-10 23:16:17 -0700
committernotgne22020-11-10 23:16:17 -0700
commit47978fcfc9362f659c1406fa60f1de7d21d1e50e (patch)
treeca71a5b6d5289b332dcc7cdb82f28fe29ceb1fcb
parent0919b1bf6baab96b154e7c7607073bc6d9857148 (diff)
Re-order link to examples in overall usage section in README
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index c6d7d62..e24a175 100644
--- a/README.md
+++ b/README.md
@@ -33,6 +33,8 @@ There is also an `activate` binary though this should be ignored, it is only use
`deploy-rs` also outputs a `lib` attribute, with tools used to make your definitions simpler and safer, including `deploy-rs.lib.${system}.setActivate` (see later section "Profile"), and `deploy-rs.lib.${system}.deployChecks` which will let `nix flake check` ensure your deployment is defined correctly.
+There are full working deploy-rs Nix expressions in the [examples folder](./examples), and there is a JSON schema [here](./interface.json) which is used internally by the `deployChecks` mentioned above to validate your expressions.
+
A basic example of a flake that works with `deploy-rs` and deploys a simple NixOS configuration could look like this
```nix
@@ -59,8 +61,6 @@ A basic example of a flake that works with `deploy-rs` and deploys a simple NixO
}
```
-There are full working deploy-rs Nix expressions in the [examples folder](./examples), and there is a JSON schema [here](./interface.json) which is used internally by the `deployChecks` mentioned above to validate your expressions.
-
### Profile
This is the core of how `deploy-rs` was designed, any number of these can run on a node, as any user (see further down for specifying user information). If you want to mimick the behaviour of traditional tools like NixOps or Morph, try just defining one `profile` called `system`, as root, containing a nixosSystem, and you can even similarly use [home-manager](https://github.com/nix-community/home-manager) on any non-privileged user.