From 75df988e1cb9863ee5d708dbc578f7690bb182de Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 1 Dec 2026 03:50:16 +0000 Subject: populate pipe: directory, a directory the command makes A pipe source's command printed a file. With directory set, it gets an empty directory as its first argument, mode 0700 in populate's temporary directory, which populate removes afterwards, and fills it, and populate delivers what it made there, with the modes it has, e.g. secrets with mode 0600 under 0700, and the fixed time of pipe's output, compared by checksum. Secrets that should stay in memory can go to a target directory of their own, e.g. in /run, with a populate run of its own. The scenario pipe-directory checks the modes, and that a changed directory gets mirrored, removing what's not in it anymore. --- pkgs/populate/lib/types/populate.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkgs/populate/lib/types') diff --git a/pkgs/populate/lib/types/populate.nix b/pkgs/populate/lib/types/populate.nix index 6605f61..2477e44 100644 --- a/pkgs/populate/lib/types/populate.nix +++ b/pkgs/populate/lib/types/populate.nix @@ -338,6 +338,10 @@ command = lib.mkOption { type = lib.types.absolute-pathname; }; + directory = lib.mkOption { + default = false; + type = lib.types.bool; + }; }; }; symlink = lib.types.submodule { -- cgit v1.3.1 [cgit] Unable to lock slot /tmp/cgit/65100000.lock: Permission denied (13)