aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-13 14:01:28 +0000
committertv <tv@krebsco.de>2026-11-13 15:07:23 +0100
commitafdb3ee5fe6e6ce2447f4838ca88108525b0ee4b (patch)
treef88feea397764c8bd86bce7e9141b1eb1790f100 /README.md
parent36cfd6b9fa8d729172f90e8fdd507349905d4f11 (diff)
krops: add allocateTTY to writeDeploy
With allocateTTY, nixos-rebuild runs with a terminal, so it shows colours and progress: on remote targets, ssh gets -t, which allocates a terminal if its own input is one, and on the local target, expect's unbuffer provides one. The nixos-rebuild stand-in records whether its output is a terminal.
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/README.md b/README.md
index 2784a9d..3bef68c 100644
--- a/README.md
+++ b/README.md
@@ -135,6 +135,12 @@ pkgs.krops.writeDeploy "deploy" {
For more details about the `target` attribute, please check the `mkTarget`
function in [lib/default.nix](lib/default.nix).
+### `allocateTTY` (optional, defaults to false)
+
+Run `nixos-rebuild` with a terminal, so it shows colours and progress. On a
+remote target, this sets `-t` on the ssh command, which only allocates a
+terminal if krops runs in one. On the local target, `unbuffer` provides one.
+
### `backup` (optional, defaults to false)
Backup all paths specified in source before syncing new sources.