secrets-for-users: set HOME envvar to avoid warnings on sops >= 3.10.0

Followup for #765, where I missed this. It's needed here too, since it
runs in the same context as the default module.

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
Christoph Heiss 2025-04-04 09:25:24 +02:00 committed by Jörg Thalheim
parent 9bc9b59644
commit cff8437c5f

View file

@ -14,7 +14,11 @@ let
inherit (pkgs) writeTextFile; inherit (pkgs) writeTextFile;
}; };
withEnvironment = import ../with-environment.nix { withEnvironment = import ../with-environment.nix {
inherit cfg lib; # See also the default NixOS module.
cfg = lib.recursiveUpdate cfg {
environment.HOME = "/var/empty";
};
inherit lib;
}; };
manifestForUsers = manifestFor "-for-users" secretsForUsers templatesForUsers { manifestForUsers = manifestFor "-for-users" secretsForUsers templatesForUsers {
secretsMountPoint = "/run/secrets-for-users.d"; secretsMountPoint = "/run/secrets-for-users.d";