diff options
author | notgne2 | 2020-11-10 23:16:17 -0700 |
---|---|---|
committer | notgne2 | 2020-11-10 23:16:17 -0700 |
commit | 47978fcfc9362f659c1406fa60f1de7d21d1e50e (patch) | |
tree | ca71a5b6d5289b332dcc7cdb82f28fe29ceb1fcb | |
parent | 0919b1bf6baab96b154e7c7607073bc6d9857148 (diff) |
Re-order link to examples in overall usage section in README
Diffstat (limited to '')
-rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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. |