From afdb3ee5fe6e6ce2447f4838ca88108525b0ee4b Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 13 Nov 2026 14:01:28 +0000 Subject: 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. --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'README.md') 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. -- cgit v1.3.1