aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-11 17:07:28 +0000
committertv <tv@krebsco.de>2026-11-11 17:07:28 +0000
commit2451dceb0cf2b0b4e5b1815dd28fb480ba1d5956 (patch)
tree3f75a31fc076eebf6064d16dc29c74bbed3cc21e /README.md
parentc59f05ae0b5a789f36b57f5839cd22af608dbf3d (diff)
krops writeDeploy: add flake parameter
With flake set, nixos-rebuild deploys that flake from the build target's source directory, with flakes enabled for the command. The deployment fails with an error message unless Nix on the build target supports flakes.
Diffstat (limited to 'README.md')
-rw-r--r--README.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/README.md b/README.md
index 39ed6cb..7c17d6d 100644
--- a/README.md
+++ b/README.md
@@ -129,6 +129,16 @@ architecture.
Run `nixos-rebuild` immediately without building the system in a dedicated `nix
build` step.
+### `flake` (optional)
+
+Name of the source containing the flake to deploy, optionally followed by `#`
+and the name of the NixOS configuration, e.g. `"myconf#myhost"`. If the source
+draws inputs from other sources, its generated flake gets deployed, see
+[Flake inputs from sources](#flake-inputs-from-sources). This makes
+`nixos-rebuild` use `--flake`, and requires Nix with flake support (Nix 2.4 or
+later) on the build target. Without the name of the NixOS configuration,
+`nixos-rebuild` uses the host name of the build target.
+
### `force` (optional, defaults to false)
Create the sentinel file (`/var/src/.populate`) before syncing the new source.