| |
|
|
|
|
|
|
|
|
|
|
| |
The default, toString ~/.passage/identities, is a path relative to the
home directory, which Nix resolves when parsing the file defining it,
populate's Nix library's types, so evaluating any sources failed in pure
mode, e.g. in a flake. identities_file defaults to null, which leaves it
out of the sources, and populate defaults it to ~/.passage/identities,
in HOME, when it runs.
The passage scenarios also run without identities_file, with HOME a
directory that has .passage/identities.
|
|
|
populate is a program of its own, with a Nix library, in pkgs/populate,
which krops uses, and which doesn't use krops:
- default.nix builds the program, with nix-build there or callPackage,
as pkgs.populate-unwrapped.
- lib is populate's Nix library: the types of sources and the POSIX
types they use, evalSource, flakeFollows, hasGeneratedFlake, and
derivesFlake, taking nixpkgs' lib. krops' lib takes them from there,
so it provides them as before, and so does lib/types.
pkgs.populate, the function from populate's arguments to a script
running the program, is krops' own, in pkgs/krops/populate.nix, with
checks.nix next to it. It takes the program as populate-unwrapped,
which callPackage passes from the overlay; the flake, whose nixpkgs
lacks it, passes its own.
|