diff options
| author | tv <tv@krebsco.de> | 2026-11-14 04:18:14 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-14 04:18:14 +0000 |
| commit | 2ddbb18906c19d351274b68e182839f1801f4ce9 (patch) | |
| tree | 606ddcc87eaddb1dfcac37d14dd52c6e3cb68a09 /CHANGELOG.md | |
| parent | ee3a91eada2e863a192980df1f15dedd9f397f1c (diff) | |
krops: leave targets to populate, also in pure evaluation
writeDeploy, writeCommand, and writeTest pass target strings to
pkgs.populate as they are, so populate fills in what they leave out, and
decides whether the target is local, when it runs. runShell runs
populate shell, which decides that for running nixos-rebuild and
writeCommand's commands, so rebuild's unbuffer for local targets with
allocateTTY depends on $1, and runShell returns shell code, also for
remote targets. Target attribute sets get mkTarget's defaults and
whether they're local during evaluation, as before, unless that's pure:
then mkTarget leaves the user and the host null, instead of reading
/etc/hostname, which pure evaluation pretends doesn't exist, and
pkgs.populate and populate shell leave them, and whether the target is
local, to populate, which also refuses copying flakes to targets using
sudo then. writeTest checks that its target is local during evaluation,
unless that's pure, and with populate shell --local-only before
populating. writeDeploy needs a target's host for a separate
buildTarget in pure evaluation. pkgs/krops/target.nix has what
pkgs.populate and pkgs.krops need of targets.
pkgs.populate's derivations stay the same, for strings and attribute
sets. The deploy scenarios get target strings too, for the local and
the remote target, and so does the allocateTTY scenario.
Diffstat (limited to 'CHANGELOG.md')
| -rw-r--r-- | CHANGELOG.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index ea60f0b..63f8018 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,14 @@ and krops' flake use the nixpkgs lib they get, instead of `<nixpkgs/lib>`. `lib/default.nix` stays for backwards compatibility, merging `<nixpkgs/lib>`, builtins, and `lib/with.nix`. +- krops works in pure evaluation, e.g. in flakes without `--impure`. + Target strings go to populate as they are, also from `writeDeploy`, + `writeCommand`, and `writeTest`, and `runShell`, which runs + `nixos-rebuild`, runs the new `populate shell`, which decides whether a + target is local when it runs. In pure evaluation, `mkTarget` leaves the + user and the host null, and target attribute sets leave whether they're + local to populate, which also refuses to copy flakes to targets using + sudo then. `runShell` returns shell code, also for remote targets. - A `passage` source's `identities_file` defaults to `~/.passage/identities` when populate runs, instead of during evaluation. |
