aboutsummaryrefslogtreecommitdiffstats
path: root/pkgs/populate/src/check.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-14 03:45:10 +0000
committertv <tv@krebsco.de>2026-11-14 04:56:34 +0100
commit3e2116f153077186556c01ae1fc89923abfea265 (patch)
treeb3dcebd146ceba4691ea7546e5d0937ac6591707 /pkgs/populate/src/check.rs
parentfeda621a3a6b29c55c179059259d938d83e30f6e (diff)
populate: passage sources default identities_file when populate runs
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.
Diffstat (limited to 'pkgs/populate/src/check.rs')
-rw-r--r--pkgs/populate/src/check.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/populate/src/check.rs b/pkgs/populate/src/check.rs
index 5b73deb..155565f 100644
--- a/pkgs/populate/src/check.rs
+++ b/pkgs/populate/src/check.rs
@@ -104,7 +104,7 @@ fn known_settings(kind: &str) -> &'static [(&'static str, Kind, bool)] {
"passage" => &[
("age", String, true),
("dir", String, true),
- ("identities_file", String, true),
+ ("identities_file", String, false),
],
"pipe" => &[("command", Absolute, true)],
"symlink" => &[("target", String, true), ("inputs", Inputs, false)],