aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvar Larsson2024-05-14 11:16:12 -0400
committerGitHub2024-05-14 17:16:12 +0200
commitb3ea6f333f9057b77efd9091119ba67089399ced (patch)
tree6d41431dc9996dce6b8eaa7f3ee6fa85c0ab9fa5
parent88b3059b020da69cbe16526b8d639bd5e0b51c8b (diff)
Update example to make it work (#247)
-rw-r--r--README.md11
1 files changed, 7 insertions, 4 deletions
diff --git a/README.md b/README.md
index 672db8f..d01568e 100644
--- a/README.md
+++ b/README.md
@@ -75,9 +75,12 @@ A basic example of a flake that works with `deploy-rs` and deploys a simple NixO
modules = [ ./some-random-system/configuration.nix ];
};
- deploy.nodes.some-random-system.profiles.system = {
- user = "root";
- path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.some-random-system;
+ deploy.nodes.some-random-system = {
+ hostname = "some-random-system";
+ profiles.system = {
+ user = "root";
+ path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.some-random-system;
+ };
};
# This is highly advised, and will prevent many possible mistakes
@@ -214,7 +217,7 @@ This is a set of options that can be put in any of the above definitions, with t
# (if `magicRollback` is in use, this _must_ be writable by `user`)
tempPath = "/home/someuser/.deploy-rs";
- # Build the derivation on the target system.
+ # Build the derivation on the target system.
# Will also fetch all external dependencies from the target system's substituters.
# This default to `false`
remoteBuild = true;