Skip to content

Commit b3ea6f3

Browse files
authored
Update example to make it work (#247)
1 parent 88b3059 commit b3ea6f3

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,12 @@ A basic example of a flake that works with `deploy-rs` and deploys a simple NixO
7575
modules = [ ./some-random-system/configuration.nix ];
7676
};
7777
78-
deploy.nodes.some-random-system.profiles.system = {
79-
user = "root";
80-
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.some-random-system;
78+
deploy.nodes.some-random-system = {
79+
hostname = "some-random-system";
80+
profiles.system = {
81+
user = "root";
82+
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.some-random-system;
83+
};
8184
};
8285
8386
# 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
214217
# (if `magicRollback` is in use, this _must_ be writable by `user`)
215218
tempPath = "/home/someuser/.deploy-rs";
216219
217-
# Build the derivation on the target system.
220+
# Build the derivation on the target system.
218221
# Will also fetch all external dependencies from the target system's substituters.
219222
# This default to `false`
220223
remoteBuild = true;

0 commit comments

Comments
 (0)