mirror of
https://github.com/Mic92/sops-nix.git
synced 2025-12-26 14:14:58 +08:00
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:
parent
9bc9b59644
commit
cff8437c5f
1 changed files with 5 additions and 1 deletions
|
|
@ -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";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue