diff options
| author | tv <tv@krebsco.de> | 2026-11-13 14:01:28 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-13 15:07:23 +0100 |
| commit | afdb3ee5fe6e6ce2447f4838ca88108525b0ee4b (patch) | |
| tree | f88feea397764c8bd86bce7e9141b1eb1790f100 /README.md | |
| parent | 36cfd6b9fa8d729172f90e8fdd507349905d4f11 (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.md | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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. |
